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

Unified Diff: device/usb/usb_device.cc

Issue 2108923002: device: Change auto to not deduce raw pointers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
Index: device/usb/usb_device.cc
diff --git a/device/usb/usb_device.cc b/device/usb/usb_device.cc
index 1e22ea0d00a97cae18990a350224ea00499f65d7..06c4f7c14ebfdbd6d722f4824f5cf0f801888156 100644
--- a/device/usb/usb_device.cc
+++ b/device/usb/usb_device.cc
@@ -80,7 +80,7 @@ void UsbDevice::OnDisconnect() {
// Swap out the handle list as HandleClosed() will try to modify it.
std::list<UsbDeviceHandle*> handles;
handles.swap(handles_);
- for (auto handle : handles_)
+ for (auto* handle : handles_)
handle->Close();
}

Powered by Google App Engine
This is Rietveld 408576698