X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fmainwindow.cpp;h=34938e7364cb5d827670558d903be0f6426fe0c0;hb=3ce5dd9a981d128085dc5ea507dd7157a87be4cb;hp=8e3cb9d1085f9c72588c519dc74e9e5bbb8b8179;hpb=5d58e6ce2b4b0e786edb3945953e59a664685c1a;p=pulseview.git diff --git a/pv/mainwindow.cpp b/pv/mainwindow.cpp index 8e3cb9d1..34938e73 100644 --- a/pv/mainwindow.cpp +++ b/pv/mainwindow.cpp @@ -669,7 +669,7 @@ void MainWindow::on_run_stop_clicked() vector< shared_ptr > hw_sessions; // Make a list of all sessions where a hardware device is used - for (shared_ptr s : sessions_) { + for (const shared_ptr& s : sessions_) { shared_ptr hw_device = dynamic_pointer_cast< devices::HardwareDevice >(s->device()); if (!hw_device)