X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fmainwindow.cpp;h=34938e7364cb5d827670558d903be0f6426fe0c0;hb=8fa8412e303a3061807facc03b23df6738548115;hp=8e3cb9d1085f9c72588c519dc74e9e5bbb8b8179;hpb=4f654de1ecd97104164419985ab31ea83bf9daef;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)