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

Unified Diff: device/bluetooth/test/mock_bluetooth_cbservice_mac.mm

Issue 2906883004: bluetooth: macOS: Removing useless |.get()| (Closed)
Patch Set: Merge from top of tree 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/test/mock_bluetooth_cbservice_mac.mm
diff --git a/device/bluetooth/test/mock_bluetooth_cbservice_mac.mm b/device/bluetooth/test/mock_bluetooth_cbservice_mac.mm
index e82527d477bb7fa2879b214fa7d8d8c4be4aca55..cdd1516f0858b1d9d62a43cba3daf8d38c37f4d4 100644
--- a/device/bluetooth/test/mock_bluetooth_cbservice_mac.mm
+++ b/device/bluetooth/test/mock_bluetooth_cbservice_mac.mm
@@ -60,7 +60,7 @@ using base::scoped_nsobject;
}
- (CBUUID*)UUID {
- return _UUID.get();
+ return _UUID;
}
- (void)addCharacteristicWithUUID:(CBUUID*)cb_uuid properties:(int)properties {
@@ -68,11 +68,11 @@ using base::scoped_nsobject;
[[MockCBCharacteristic alloc] initWithService:self.service
CBUUID:cb_uuid
properties:properties]);
- [_characteristics.get() addObject:characteristic_mock];
+ [_characteristics addObject:characteristic_mock];
}
- (void)removeCharacteristicMock:(MockCBCharacteristic*)characteristic_mock {
- [_characteristics.get() removeObject:characteristic_mock];
+ [_characteristics removeObject:characteristic_mock];
}
- (CBService*)service {
@@ -80,7 +80,7 @@ using base::scoped_nsobject;
}
- (NSArray*)characteristics {
- return _characteristics.get();
+ return _characteristics;
}
@end
« no previous file with comments | « device/bluetooth/test/mock_bluetooth_cbperipheral_mac.mm ('k') | device/bluetooth/test/mock_bluetooth_central_manager_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698