X-Git-Url: http://git.code-monkey.de/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fdevicemanager.cpp;h=ebf140fd725c793f340e089cbb49d412a0348297;hp=ca8f66bee5316e6116d4fb38afcbdd93ca78a24d;hb=f4ab4b5c657e5613caba82feaa81a8a400e4f331;hpb=46ebcd3f6f85092a9eb6401f6f56cee8fa08131a diff --git a/pv/devicemanager.cpp b/pv/devicemanager.cpp index ca8f66b..ebf140f 100644 --- a/pv/devicemanager.cpp +++ b/pv/devicemanager.cpp @@ -84,7 +84,7 @@ DeviceManager::DeviceManager(shared_ptr context, * Scan for devices. No specific options apply here, this is * best effort auto detection. */ - for (auto entry : context->drivers()) { + for (auto& entry : context->drivers()) { if (!do_scan) break; @@ -187,7 +187,7 @@ DeviceManager::drive_scan_options(vector user_spec, { map result; - for (auto entry : user_spec) { + for (auto& entry : user_spec) { /* * Split key=value specs. Accept entries without separator * (for simplified boolean specifications). @@ -256,7 +256,7 @@ DeviceManager::driver_scan( auto devices = driver->scan(drvopts); // Add the scanned devices to the main list, set display names and sort. - for (shared_ptr device : devices) { + for (shared_ptr& device : devices) { const shared_ptr d( new devices::HardwareDevice(context_, device)); driver_devices.push_back(d);