diff options
Diffstat (limited to 'SmartDeviceLink/SDLHeadLampStatus.m')
-rw-r--r-- | SmartDeviceLink/SDLHeadLampStatus.m | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/SmartDeviceLink/SDLHeadLampStatus.m b/SmartDeviceLink/SDLHeadLampStatus.m index 44ed87b44..4141c1529 100644 --- a/SmartDeviceLink/SDLHeadLampStatus.m +++ b/SmartDeviceLink/SDLHeadLampStatus.m @@ -45,7 +45,7 @@ return [store objectForKey:NAMES_highBeamsOn]; } -- (void)setAmbientLightSensorStatus:(SDLAmbientLightStatus *)ambientLightSensorStatus { +- (void)setAmbientLightSensorStatus:(SDLAmbientLightStatus)ambientLightSensorStatus { if (ambientLightSensorStatus != nil) { [store setObject:ambientLightSensorStatus forKey:NAMES_ambientLightSensorStatus]; } else { @@ -53,13 +53,9 @@ } } -- (SDLAmbientLightStatus *)ambientLightSensorStatus { +- (SDLAmbientLightStatus)ambientLightSensorStatus { NSObject *obj = [store objectForKey:NAMES_ambientLightSensorStatus]; - if (obj == nil || [obj isKindOfClass:SDLAmbientLightStatus.class]) { - return (SDLAmbientLightStatus *)obj; - } else { - return [SDLAmbientLightStatus valueOf:(NSString *)obj]; - } + return (SDLAmbientLightStatus)obj; } @end |