summaryrefslogtreecommitdiff
path: root/SmartDeviceLink/SDLSoftButton.m
diff options
context:
space:
mode:
authorJoel Fischer <joeljfischer@gmail.com>2017-02-15 10:39:05 -0500
committerJoel Fischer <joeljfischer@gmail.com>2017-02-15 10:39:05 -0500
commit47e4cd783cc34e6c738eea580da9cb6b23273dab (patch)
tree9bc25a423432ee8a04cba907267a41150bdc2369 /SmartDeviceLink/SDLSoftButton.m
parent6ab71cef50db3ef2e41a47787280b8ceb765e55f (diff)
downloadsdl_ios-47e4cd783cc34e6c738eea580da9cb6b23273dab.tar.gz
Update structs to support being copiedfeature/rpcs_nscopying
Diffstat (limited to 'SmartDeviceLink/SDLSoftButton.m')
-rw-r--r--SmartDeviceLink/SDLSoftButton.m7
1 files changed, 7 insertions, 0 deletions
diff --git a/SmartDeviceLink/SDLSoftButton.m b/SmartDeviceLink/SDLSoftButton.m
index 9f9a5c21e..c33880c06 100644
--- a/SmartDeviceLink/SDLSoftButton.m
+++ b/SmartDeviceLink/SDLSoftButton.m
@@ -87,6 +87,13 @@ NS_ASSUME_NONNULL_BEGIN
return [store sdl_objectForName:SDLNameSystemAction];
}
+-(id)copyWithZone:(nullable NSZone *)zone {
+ SDLSoftButton *newButton = [super copyWithZone:zone];
+ newButton->_handler = self.handler;
+
+ return newButton;
+}
+
@end
NS_ASSUME_NONNULL_END