From: minho.sun Date: Thu, 9 Feb 2017 01:53:06 +0000 (+0900) Subject: Revert "[Tizen] Functions that return value types should not return them as const." X-Git-Tag: accepted/tizen/common/20170223.182725~14 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F88%2F113788%2F1;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git Revert "[Tizen] Functions that return value types should not return them as const." This reverts commit 3304805bd0cfe70e1f0947fcbc0a196f6fad72a2. Change-Id: I8c81f56ed09f5990afc658a744898df2f3f98daa --- diff --git a/adaptors/base/performance-logging/performance-marker.cpp b/adaptors/base/performance-logging/performance-marker.cpp index 4b1a883..05b3258 100644 --- a/adaptors/base/performance-logging/performance-marker.cpp +++ b/adaptors/base/performance-logging/performance-marker.cpp @@ -77,7 +77,7 @@ PerformanceMarker::PerformanceMarker( PerformanceInterface::MarkerType type, Fra { } -const char* PerformanceMarker::GetName( ) const +const char* const PerformanceMarker::GetName( ) const { return MARKER_LOOKUP[ mType ].name; } diff --git a/adaptors/base/performance-logging/performance-marker.h b/adaptors/base/performance-logging/performance-marker.h index a1c429f..9651770 100644 --- a/adaptors/base/performance-logging/performance-marker.h +++ b/adaptors/base/performance-logging/performance-marker.h @@ -111,7 +111,7 @@ public: /** * @return marker name */ - const char* GetName( ) const; + const char* const GetName( ) const; /** * @param start the start marker diff --git a/adaptors/base/performance-logging/statistics/stat-context-manager.cpp b/adaptors/base/performance-logging/statistics/stat-context-manager.cpp index b5dbb8c..bdc86ec 100644 --- a/adaptors/base/performance-logging/statistics/stat-context-manager.cpp +++ b/adaptors/base/performance-logging/statistics/stat-context-manager.cpp @@ -174,7 +174,7 @@ void StatContextManager::SetLoggingFrequency( unsigned int logFrequency, context->SetLogFrequency( logFrequency ); } } -const char* StatContextManager::GetContextName(PerformanceInterface::ContextId contextId) const +const char* const StatContextManager::GetContextName(PerformanceInterface::ContextId contextId) const { StatContext* context = GetContext(contextId); if( context ) @@ -184,7 +184,7 @@ const char* StatContextManager::GetContextName(PerformanceInterface::ContextId c return "context not found"; } -const char* StatContextManager::GetMarkerDescription( PerformanceInterface::MarkerType type, PerformanceInterface::ContextId contextId ) const +const char* const StatContextManager::GetMarkerDescription( PerformanceInterface::MarkerType type, PerformanceInterface::ContextId contextId ) const { StatContext* context = GetContext(contextId); if( context ) diff --git a/adaptors/base/performance-logging/statistics/stat-context-manager.h b/adaptors/base/performance-logging/statistics/stat-context-manager.h index 305228d..9e9abe1 100644 --- a/adaptors/base/performance-logging/statistics/stat-context-manager.h +++ b/adaptors/base/performance-logging/statistics/stat-context-manager.h @@ -98,7 +98,7 @@ public: * @param[in] contextId id of the context to get the name * @return context name */ - const char* GetContextName( PerformanceInterface::ContextId contextId ) const; + const char* const GetContextName( PerformanceInterface::ContextId contextId ) const; /** * @brief Get the full description of a marker for this context @@ -106,7 +106,7 @@ public: * @param[in] contextId id of the context to get the name * @return marker description in relation to this context */ - const char* GetMarkerDescription( PerformanceInterface::MarkerType type, PerformanceInterface::ContextId contextId ) const; + const char* const GetMarkerDescription( PerformanceInterface::MarkerType type, PerformanceInterface::ContextId contextId ) const; /** diff --git a/adaptors/base/performance-logging/statistics/stat-context.cpp b/adaptors/base/performance-logging/statistics/stat-context.cpp index 1189c8c..de0a4fc 100644 --- a/adaptors/base/performance-logging/statistics/stat-context.cpp +++ b/adaptors/base/performance-logging/statistics/stat-context.cpp @@ -74,12 +74,12 @@ unsigned int StatContext::GetId() const return mId; } -const char* StatContext::GetName() const +const char* const StatContext::GetName() const { return mName; } -const char* StatContext::GetMarkerDescription( PerformanceInterface::MarkerType type ) const +const char* const StatContext::GetMarkerDescription( PerformanceInterface::MarkerType type ) const { if( type == PerformanceInterface::START ) { diff --git a/adaptors/base/performance-logging/statistics/stat-context.h b/adaptors/base/performance-logging/statistics/stat-context.h index 1ab1cba..2408905 100644 --- a/adaptors/base/performance-logging/statistics/stat-context.h +++ b/adaptors/base/performance-logging/statistics/stat-context.h @@ -75,7 +75,7 @@ public: /** * @return the context name */ - const char* GetName() const; + const char* const GetName() const; /** * @@ -84,7 +84,7 @@ public: * @param[in] type marker type, for a customer marker this will be either START or END * @return the full description for a marker */ - const char* GetMarkerDescription( PerformanceInterface::MarkerType type ) const; + const char* const GetMarkerDescription( PerformanceInterface::MarkerType type ) const; /** * @brief Set the frequency for logging