Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2685)

Unified Diff: device/usb/usb_service_impl.cc

Issue 2108923002: device: Change auto to not deduce raw pointers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: device Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « device/usb/usb_device_handle_usbfs.cc ('k') | device/vr/test/fake_vr_device_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/usb/usb_service_impl.cc
diff --git a/device/usb/usb_service_impl.cc b/device/usb/usb_service_impl.cc
index 9732be7e4124cd1b0c19c71b4e00243f61f0c607..6a4c96752461dbd810e6f4a572e3ffbd46e8f2cf 100644
--- a/device/usb/usb_service_impl.cc
+++ b/device/usb/usb_service_impl.cc
@@ -236,7 +236,7 @@ UsbServiceImpl::UsbServiceImpl(
UsbServiceImpl::~UsbServiceImpl() {
if (hotplug_enabled_)
libusb_hotplug_deregister_callback(context_->context(), hotplug_handle_);
- for (const auto& platform_device : ignored_devices_)
+ for (auto* platform_device : ignored_devices_)
libusb_unref_device(platform_device);
}
« no previous file with comments | « device/usb/usb_device_handle_usbfs.cc ('k') | device/vr/test/fake_vr_device_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698