]> sigrok.org Git - pulseview.git/blobdiff - pv/devices/inputfile.cpp
Fix the build - catch exceptions by reference
[pulseview.git] / pv / devices / inputfile.cpp
index 8e973f0561718d33fcd58afbc40659696e41417a..46886ed516399eaebb7b624edf951a70775b7b01 100644 (file)
@@ -86,7 +86,7 @@ InputFile::InputFile(const shared_ptr<sigrok::Context> &context,
                        settings.endGroup();
                }
 
-       } catch (out_of_range) {
+       } catch (out_of_range&) {
                qWarning() << "Could not find input format" << format_name <<
                        "needed to restore session input file";
        }