]> sigrok.org Git - pulseview.git/blobdiff - pv/mainwindow.cpp
Fix some clang-tidy complaints
[pulseview.git] / pv / mainwindow.cpp
index 8e3cb9d1085f9c72588c519dc74e9e5bbb8b8179..34938e7364cb5d827670558d903be0f6426fe0c0 100644 (file)
@@ -669,7 +669,7 @@ void MainWindow::on_run_stop_clicked()
                vector< shared_ptr<Session> > hw_sessions;
 
                // Make a list of all sessions where a hardware device is used
-               for (shared_ptr<Session> s : sessions_) {
+               for (const shared_ptr<Session>& s : sessions_) {
                        shared_ptr<devices::HardwareDevice> hw_device =
                                        dynamic_pointer_cast< devices::HardwareDevice >(s->device());
                        if (!hw_device)