From e5201e75eae54e27350d68753a07495a763a87a0 Mon Sep 17 00:00:00 2001 From: HyeJin Lee Date: Tue, 9 Apr 2013 22:23:05 +0900 Subject: [PATCH] change ToLower -> ToLowerCase Change-Id: Icb8e6016f60570bcc1b38f0906fac355d19474a5 --- .../animations/FUiAnimVisualElementAnimation.cpp | 27 +++++++++++----------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/src/ui/animations/FUiAnimVisualElementAnimation.cpp b/src/ui/animations/FUiAnimVisualElementAnimation.cpp index 8a96b27..ed073c6 100644 --- a/src/ui/animations/FUiAnimVisualElementAnimation.cpp +++ b/src/ui/animations/FUiAnimVisualElementAnimation.cpp @@ -62,7 +62,7 @@ private: Tizen::Base::String* pKeyLinear = new (std::nothrow) Tizen::Base::String(L"Linear"); SysTryReturnVoidResult(NID_UI_ANIM, pKeyLinear, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory allocation failed."); - pKeyLinear->ToLower(); + pKeyLinear->ToLowerCase(); pTimingFunctions->Add(*pKeyLinear, *pTimingFunctionLinear); // EaseIn @@ -72,7 +72,7 @@ private: Tizen::Base::String* pKeyEaseIn = new (std::nothrow) Tizen::Base::String(L"EaseIn"); SysTryReturnVoidResult(NID_UI_ANIM, pKeyEaseIn, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory allocation failed."); - pKeyEaseIn->ToLower(); + pKeyEaseIn->ToLowerCase(); pTimingFunctions->Add(*pKeyEaseIn, *pTimingFunctionEaseIn); // EaseOut @@ -82,7 +82,7 @@ private: Tizen::Base::String* pKeyEaseOut = new (std::nothrow) Tizen::Base::String(L"EaseOut"); SysTryReturnVoidResult(NID_UI_ANIM, pKeyEaseOut, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory allocation failed."); - pKeyEaseOut->ToLower(); + pKeyEaseOut->ToLowerCase(); pTimingFunctions->Add(*pKeyEaseOut, *pTimingFunctionEaseOut); // EaseInOut @@ -92,7 +92,7 @@ private: Tizen::Base::String* pKeyEaseInOut = new (std::nothrow) Tizen::Base::String(L"EaseInOut"); SysTryReturnVoidResult(NID_UI_ANIM, pKeyEaseInOut, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory allocation failed."); - pKeyEaseInOut->ToLower(); + pKeyEaseInOut->ToLowerCase(); pTimingFunctions->Add(*pKeyEaseInOut, *pTimingFunctionEaseInOut); // EaseOutIn @@ -102,7 +102,7 @@ private: Tizen::Base::String* pKeyEaseOutIn = new (std::nothrow) Tizen::Base::String(L"EaseOutIn"); SysTryReturnVoidResult(NID_UI_ANIM, pKeyEaseOutIn, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory allocation failed."); - pKeyEaseOutIn->ToLower(); + pKeyEaseOutIn->ToLowerCase(); pTimingFunctions->Add(*pKeyEaseOutIn, *pTimingFunctionEaseOutIn); // Discrete @@ -112,7 +112,7 @@ private: Tizen::Base::String* pKeyDiscrete = new (std::nothrow) Tizen::Base::String(L"Discrete"); SysTryReturnVoidResult(NID_UI_ANIM, pKeyDiscrete, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory allocation failed."); - pKeyDiscrete->ToLower(); + pKeyDiscrete->ToLowerCase(); pTimingFunctions->Add(*pKeyDiscrete, *pTimingFunctionDiscrete); // Bezier @@ -122,7 +122,7 @@ private: Tizen::Base::String* pKeyBezier = new (std::nothrow) Tizen::Base::String(L"Bezier"); SysTryReturnVoidResult(NID_UI_ANIM, pKeyBezier, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory allocation failed."); - pKeyBezier->ToLower(); + pKeyBezier->ToLowerCase(); pTimingFunctions->Add(*pKeyBezier, *pTimingFunctionBezier); // ExpIn @@ -132,7 +132,7 @@ private: Tizen::Base::String* pKeyExpIn = new (std::nothrow) Tizen::Base::String(L"ExpIn"); SysTryReturnVoidResult(NID_UI_ANIM, pKeyExpIn, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory allocation failed."); - pKeyExpIn->ToLower(); + pKeyExpIn->ToLowerCase(); pTimingFunctions->Add(*pKeyExpIn, *pTimingFunctionExpIn); // ExpOut @@ -142,7 +142,7 @@ private: Tizen::Base::String* pKeyExpOut = new (std::nothrow) Tizen::Base::String(L"ExpOut"); SysTryReturnVoidResult(NID_UI_ANIM, pKeyExpOut, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory allocation failed."); - pKeyExpOut->ToLower(); + pKeyExpOut->ToLowerCase(); pTimingFunctions->Add(*pKeyExpOut, *pTimingFunctionExpOut); // EaseElasticIn @@ -152,7 +152,7 @@ private: Tizen::Base::String* pKeyEaseElasticIn = new (std::nothrow) Tizen::Base::String(L"EaseElasticIn"); SysTryReturnVoidResult(NID_UI_ANIM, pKeyEaseElasticIn, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory allocation failed."); - pKeyEaseElasticIn->ToLower(); + pKeyEaseElasticIn->ToLowerCase(); pTimingFunctions->Add(*pKeyEaseElasticIn, *pTimingFunctionEaseElasticIn); // EaseElasticOut @@ -162,7 +162,7 @@ private: Tizen::Base::String* pKeyEaseElasticOut = new (std::nothrow) Tizen::Base::String(L"EaseElasticOut"); SysTryReturnVoidResult(NID_UI_ANIM, pKeyEaseElasticOut, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory allocation failed."); - pKeyEaseElasticOut->ToLower(); + pKeyEaseElasticOut->ToLowerCase(); pTimingFunctions->Add(*pKeyEaseElasticOut, *pTimingFunctionEaseElasticOut); } @@ -452,9 +452,10 @@ VisualElementAnimation::GetTimingFunctionByName(const Tizen::Base::String& name) SysTryReturn(NID_UI_ANIM, pInstance, null, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory allocation failed."); SysTryReturn(NID_UI_ANIM, pInstance->pTimingFunctions, null, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory allocation failed."); - const_cast< Tizen::Base::String& >(name).ToLower(); + Tizen::Base::String functionName = name; + functionName.ToLowerCase(); - IVisualElementAnimationTimingFunction* pTimingFunction = dynamic_cast< IVisualElementAnimationTimingFunction* >(pInstance->pTimingFunctions->GetValue(name)); + IVisualElementAnimationTimingFunction* pTimingFunction = dynamic_cast< IVisualElementAnimationTimingFunction* >(pInstance->pTimingFunctions->GetValue(functionName)); SysTryReturn(NID_UI_ANIM, pTimingFunction, null, E_INVALID_ARG, "[E_INVALID_ARG] Invalid argument(s) is used. name = %ls.", name.GetPointer()); -- 2.7.4