summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Fischer <joeljfischer@gmail.com>2018-06-25 11:57:21 -0400
committerJoel Fischer <joeljfischer@gmail.com>2018-06-25 11:57:21 -0400
commitee56b8341dac05f5b61d1fc4252d82b2dc5fd6a0 (patch)
tree507bacaed904e708469775e235d0e7a167361152
parent44235468550eb1737d6a4260c10062291e2d3d95 (diff)
downloadsdl_ios-feature/issue_627_display_name_parameter.tar.gz
Fix displayName should be nullablefeature/issue_627_display_name_parameter
-rw-r--r--SmartDeviceLink/SDLDisplayCapabilities.h2
-rw-r--r--SmartDeviceLink/SDLDisplayCapabilities.m4
2 files changed, 3 insertions, 3 deletions
diff --git a/SmartDeviceLink/SDLDisplayCapabilities.h b/SmartDeviceLink/SDLDisplayCapabilities.h
index 6e26024e4..b278ef3a2 100644
--- a/SmartDeviceLink/SDLDisplayCapabilities.h
+++ b/SmartDeviceLink/SDLDisplayCapabilities.h
@@ -32,7 +32,7 @@ NS_ASSUME_NONNULL_BEGIN
Optional
*/
-@property (strong, nonatomic) NSString *displayName;
+@property (strong, nonatomic, nullable) NSString *displayName;
/**
* An array of SDLTextField structures, each of which describes a field in the HMI which the application can write to using operations such as *SDLShow*, *SDLSetMediaClockTimer*, etc.
diff --git a/SmartDeviceLink/SDLDisplayCapabilities.m b/SmartDeviceLink/SDLDisplayCapabilities.m
index 1d9642838..c1615431c 100644
--- a/SmartDeviceLink/SDLDisplayCapabilities.m
+++ b/SmartDeviceLink/SDLDisplayCapabilities.m
@@ -21,11 +21,11 @@ NS_ASSUME_NONNULL_BEGIN
return [store sdl_objectForName:SDLNameDisplayType];
}
-- (void)setDisplayName:(NSString *)displayName {
+- (void)setDisplayName:(nullable NSString *)displayName {
[store sdl_setObject:displayName forName:SDLNameDisplayName];
}
-- (NSString *)displayName {
+- (nullable NSString *)displayName {
return [store sdl_objectForName:SDLNameDisplayName];
}