]> sigrok.org Git - pulseview.git/blobdiff - pv/popups/channels.cpp
fix catching polymorphic types by value
[pulseview.git] / pv / popups / channels.cpp
index 3fb90ae760bac81287b6850353d06809dea01c5e..10146741224651594086b8c514b892f2ce2c20b2 100644 (file)
@@ -208,7 +208,7 @@ void Channels::showEvent(QShowEvent *event)
                try {
                        QLabel* label = group_label_map_.at(group);
                        label->setText(QString("<h3>%1</h3>").arg(group->name().c_str()));
-               } catch (out_of_range) {
+               } catch (out_of_range&) {
                        // Do nothing
                }
        }