]> sigrok.org Git - pulseview.git/blobdiff - pv/devices/inputfile.cpp
fix catching polymorphic types by value
[pulseview.git] / pv / devices / inputfile.cpp
index 58c60d700bbd25375222b20f09c7f35a41097e3a..b866deb8245ed1d6051833f897efc2b7d59ee282 100644 (file)
@@ -74,7 +74,7 @@ void InputFile::open()
 
        try {
                device_ = input_->device();
-       } catch (sigrok::Error) {
+       } catch (sigrok::Error&) {
                return;
        }