X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fsession.cpp;h=4d72af3347472d530533ccf08ec78ed576713d94;hp=ca72e9b0d670fed6a14da47d4c7c2ce79946c078;hb=0fb98cf80d570478f2c4b97adcb3a12318993464;hpb=7b7ab1f5cb3607bf29885eeffcb2cb215b2c9e9f diff --git a/pv/session.cpp b/pv/session.cpp index ca72e9b0..4d72af33 100644 --- a/pv/session.cpp +++ b/pv/session.cpp @@ -426,7 +426,7 @@ void Session::set_default_device() // Try and find the demo device and select that by default const auto iter = find_if(devices.begin(), devices.end(), [] (const shared_ptr &d) { - return d->hardware_device()->driver()->name() == "demo"; }); + return d->hardware_device()->driver()->name() == "demo"; }); set_device((iter == devices.end()) ? devices.front() : *iter); }