From 6513b9da84d93ece9228e4fb2a9299997cffb5aa Mon Sep 17 00:00:00 2001 From: kumo01GitHub Date: Sun, 24 Nov 2024 17:51:32 +0900 Subject: [PATCH] refactor: fix Xcode warning --- src/ios/CDVLocation.m | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ios/CDVLocation.m b/src/ios/CDVLocation.m index 84bdf15b..fc3fd61a 100644 --- a/src/ios/CDVLocation.m +++ b/src/ios/CDVLocation.m @@ -82,7 +82,6 @@ - (BOOL)isAuthorized - (BOOL)isLocationServicesEnabled { - BOOL locationServicesEnabledInstancePropertyAvailable = [self.locationManager respondsToSelector:@selector(locationServicesEnabled)]; // iOS 3.x BOOL locationServicesEnabledClassPropertyAvailable = [CLLocationManager respondsToSelector:@selector(locationServicesEnabled)]; // iOS 4.x if (locationServicesEnabledClassPropertyAvailable) { // iOS 4.x @@ -213,7 +212,7 @@ - (void)getLocation:(CDVInvokedUrlCommand*)command } } - if (!__locationStarted || (__highAccuracyEnabled != enableHighAccuracy)) { + if (!self->__locationStarted || (self->__highAccuracyEnabled != enableHighAccuracy)) { // add the callbackId into the array so we can call back when get data @synchronized (self.locationData.locationCallbacks) { if (callbackId != nil) {