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

Unified Diff: device/bluetooth/dbus/fake_bluetooth_gatt_descriptor_client.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/dbus/fake_bluetooth_gatt_descriptor_client.cc
diff --git a/device/bluetooth/dbus/fake_bluetooth_gatt_descriptor_client.cc b/device/bluetooth/dbus/fake_bluetooth_gatt_descriptor_client.cc
index 88922dc505c65c9d78bbd9497a280cefc734bb47..b32befc80083f5f6bb406b81c17debac73535d6f 100644
--- a/device/bluetooth/dbus/fake_bluetooth_gatt_descriptor_client.cc
+++ b/device/bluetooth/dbus/fake_bluetooth_gatt_descriptor_client.cc
@@ -115,7 +115,7 @@ void FakeBluetoothGattDescriptorClient::ReadValue(
uint8_t value_byte = chrc_props->notifying.value() ? 0x01 : 0x00;
const std::vector<uint8_t>& cur_value = properties->value.value();
- if (!cur_value.size() || cur_value[0] != value_byte) {
+ if (cur_value.empty() || cur_value[0] != value_byte) {
std::vector<uint8_t> value = {value_byte, 0x00};
properties->value.ReplaceValue(value);
}
« no previous file with comments | « device/bluetooth/bluez/bluetooth_socket_bluez.cc ('k') | extensions/common/features/base_feature_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698