summaryrefslogtreecommitdiffstats
path: root/device/bluetooth/bluetooth_low_energy_discovery_manager_mac.mm
diff options
context:
space:
mode:
Diffstat (limited to 'device/bluetooth/bluetooth_low_energy_discovery_manager_mac.mm')
-rw-r--r--device/bluetooth/bluetooth_low_energy_discovery_manager_mac.mm3
1 files changed, 1 insertions, 2 deletions
diff --git a/device/bluetooth/bluetooth_low_energy_discovery_manager_mac.mm b/device/bluetooth/bluetooth_low_energy_discovery_manager_mac.mm
index d14b578..5a0dbe9 100644
--- a/device/bluetooth/bluetooth_low_energy_discovery_manager_mac.mm
+++ b/device/bluetooth/bluetooth_low_energy_discovery_manager_mac.mm
@@ -57,8 +57,7 @@ void BluetoothLowEnergyDiscoveryManagerMac::TryStartDiscovery() {
for (auto& service_uuid : services_uuids_) {
NSString* uuidString =
base::SysUTF8ToNSString(service_uuid.canonical_value().c_str());
- Class aClass = NSClassFromString(@"CBUUID");
- CBUUID* uuid = [aClass UUIDWithString:uuidString];
+ CBUUID* uuid = [CBUUID UUIDWithString:uuidString];
[services addObject:uuid];
}
};