]> sigrok.org Git - pulseview.git/blobdiff - pv/dialogs/connect.cpp
Replaced lengthy iterator types with the auto keyword
[pulseview.git] / pv / dialogs / connect.cpp
index 611c9cc50d7f3fb10a81963f1a4138de06b9064b..1dd8c5077301dbebde604aa64fa9463328df5573 100644 (file)
@@ -92,8 +92,7 @@ shared_ptr<device::Device> Connect::get_selected_device() const
                Qt::UserRole).value<void*>();
        assert(sdi);
 
-       std::map<const sr_dev_inst*, boost::shared_ptr<pv::device::Device> >::
-               const_iterator iter = _device_map.find(sdi);
+       const auto iter = _device_map.find(sdi);
        assert(iter != _device_map.end());
 
        return (*iter).second;
@@ -185,7 +184,7 @@ void Connect::scan_pressed()
                QString text = QString::fromUtf8(title.c_str());
 
                if (sdi->channels) {
-                       text += QString(" with %1 probes").arg(
+                       text += QString(" with %1 channels").arg(
                                g_slist_length(sdi->channels));
                }