diff options
author | jacobkeeler <jacob.keeler@livioradio.com> | 2017-12-04 12:21:00 -0500 |
---|---|---|
committer | jacobkeeler <jacob.keeler@livioradio.com> | 2017-12-04 12:21:00 -0500 |
commit | a8c3e2ac28d758b30a2b933918635ef33f2d4cd3 (patch) | |
tree | 8f0871c23af4b53351a0aad30a87642cd2b3a024 /src/components/config_profile | |
parent | 8c94933f0d3be1ac6c6e4e88bf46dd02b52f62a6 (diff) | |
download | sdl_core-a8c3e2ac28d758b30a2b933918635ef33f2d4cd3.tar.gz |
Add DEPRECATED macro, and fix resulting deprecated warnings
Diffstat (limited to 'src/components/config_profile')
-rw-r--r-- | src/components/config_profile/include/config_profile/profile.h | 4 | ||||
-rw-r--r-- | src/components/config_profile/src/profile.cc | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/components/config_profile/include/config_profile/profile.h b/src/components/config_profile/include/config_profile/profile.h index ac4950220e..67ec9368bc 100644 --- a/src/components/config_profile/include/config_profile/profile.h +++ b/src/components/config_profile/include/config_profile/profile.h @@ -110,9 +110,9 @@ class Profile : public protocol_handler::ProtocolHandlerSettings, /** * @brief Returns true, if SDL 4.0 is enabled + * @deprecated use max_supported_protocol_version instead */ - // DEPRECATED, use max_supported_protocol_version instead - bool enable_protocol_4() const OVERRIDE; + DEPRECATED bool enable_protocol_4() const OVERRIDE; /** * @brief Returns application icons folder path diff --git a/src/components/config_profile/src/profile.cc b/src/components/config_profile/src/profile.cc index 6389375bb8..5642d6f494 100644 --- a/src/components/config_profile/src/profile.cc +++ b/src/components/config_profile/src/profile.cc @@ -451,7 +451,7 @@ const std::string& Profile::app_resource_folder() const { return app_resource_folder_; } -bool Profile::enable_protocol_4() const { +DEPRECATED bool Profile::enable_protocol_4() const { return max_supported_protocol_version_ >= 4; } |