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

Unified Diff: third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTService.cpp

Issue 2614663008: Migrate WTF::Vector::append() to ::push_back() [part 13 of N] (Closed)
Patch Set: Created 3 years, 11 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: third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTService.cpp
diff --git a/third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTService.cpp b/third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTService.cpp
index d73dd6b4e3e65b7af6d0d35224b4ad6f204e73ab..940731497b60f6c757c7647fc49af52b9b92d378 100644
--- a/third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTService.cpp
+++ b/third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTService.cpp
@@ -84,10 +84,11 @@ void BluetoothRemoteGATTService::GetCharacteristicsCallback(
HeapVector<Member<BluetoothRemoteGATTCharacteristic>> gattCharacteristics;
gattCharacteristics.reserveInitialCapacity(characteristics->size());
for (const auto& characteristic : characteristics.value()) {
- gattCharacteristics.append(device()->getOrCreateRemoteGATTCharacteristic(
- resolver->getExecutionContext(), characteristic->instance_id,
- serviceInstanceId, characteristic->uuid, characteristic->properties,
- this));
+ gattCharacteristics.push_back(
+ device()->getOrCreateRemoteGATTCharacteristic(
+ resolver->getExecutionContext(), characteristic->instance_id,
+ serviceInstanceId, characteristic->uuid,
+ characteristic->properties, this));
}
resolver->resolve(gattCharacteristics);
} else {

Powered by Google App Engine
This is Rietveld 408576698