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

Unified Diff: device/bluetooth/bluez/bluetooth_socket_bluez.cc

Issue 2070283002: Use container::back() and container::pop_back(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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
Index: device/bluetooth/bluez/bluetooth_socket_bluez.cc
diff --git a/device/bluetooth/bluez/bluetooth_socket_bluez.cc b/device/bluetooth/bluez/bluetooth_socket_bluez.cc
index a09e4f765ee702c9a931a82ec4745228229fe0ea..607fdff57e547b689670535fab40241bedce1d0e 100644
--- a/device/bluetooth/bluez/bluetooth_socket_bluez.cc
+++ b/device/bluetooth/bluez/bluetooth_socket_bluez.cc
@@ -399,7 +399,7 @@ void BluetoothSocketBlueZ::Cancel() {
VLOG(1) << profile_->object_path().value() << ": Cancel";
- if (!connection_request_queue_.size())
+ if (connection_request_queue_.empty())
return;
// If the front request is being accepted mark it as cancelled, otherwise

Powered by Google App Engine
This is Rietveld 408576698