X-Git-Url: http://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fbinding%2Fdevice.cpp;fp=pv%2Fbinding%2Fdevice.cpp;h=df83f082e355d1c1ecc3c106d4055075cd9123b4;hp=1afc2ce2f32c7f3009aec2296231b019fb15e8b8;hb=30677c1392b54604b01558cf29b44572731659fc;hpb=bf84211be02b096646cf28cf9dc7480029e4f439 diff --git a/pv/binding/device.cpp b/pv/binding/device.cpp index 1afc2ce2..df83f082 100644 --- a/pv/binding/device.cpp +++ b/pv/binding/device.cpp @@ -68,7 +68,7 @@ Device::Device(shared_ptr configurable) : string name_str; try { name_str = key->description(); - } catch (Error e) { + } catch (Error& e) { name_str = key->name(); }