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

Unified Diff: device/bluetooth/bluetooth_remote_gatt_service_mac.mm

Issue 2906883004: bluetooth: macOS: Removing useless |.get()| (Closed)
Patch Set: Created 3 years, 7 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/bluetooth_remote_gatt_service_mac.mm
diff --git a/device/bluetooth/bluetooth_remote_gatt_service_mac.mm b/device/bluetooth/bluetooth_remote_gatt_service_mac.mm
index 5fdf6741f9a691c98fc4497b0cb6168cca3894a6..75aebe8c3d988ccf21b3cea2316d9806345c1003 100644
--- a/device/bluetooth/bluetooth_remote_gatt_service_mac.mm
+++ b/device/bluetooth/bluetooth_remote_gatt_service_mac.mm
@@ -25,7 +25,7 @@ BluetoothRemoteGattServiceMac::BluetoothRemoteGattServiceMac(
is_primary_(is_primary),
is_discovery_complete_(false),
discovery_pending_count_(0) {
- uuid_ = BluetoothAdapterMac::BluetoothUUIDWithCBUUID([service_.get() UUID]);
+ uuid_ = BluetoothAdapterMac::BluetoothUUIDWithCBUUID([service_ UUID]);
identifier_ =
[NSString stringWithFormat:@"%s-%p", uuid_.canonical_value().c_str(),
(void*)service_]
@@ -214,7 +214,7 @@ CBPeripheral* BluetoothRemoteGattServiceMac::GetCBPeripheral() const {
}
CBService* BluetoothRemoteGattServiceMac::GetService() const {
- return service_.get();
+ return service_;
}
BluetoothRemoteGattCharacteristicMac*

Powered by Google App Engine
This is Rietveld 408576698