Fix PowerManager unique_ptr issue
authorJoohyun Kim <joohyune.kim@samsung.com>
Fri, 3 May 2013 14:12:20 +0000 (23:12 +0900)
committerJoohyun Kim <joohyune.kim@samsung.com>
Fri, 3 May 2013 14:19:13 +0000 (23:19 +0900)
Change-Id: I4dc69660fe2aa3e52fbf418360d9bd04fad194db
Signed-off-by: Joohyun Kim <joohyune.kim@samsung.com>
src/system/FSys_PowerManagerImpl.cpp

index 0524bf2..c4cea92 100644 (file)
@@ -489,7 +489,7 @@ _PowerManagerImpl::RestoreScreenBrightness(void)
        r = pIpcClient->SendRequest(pMsg.get());
        SysTryReturn(NID_SYS, r == E_SUCCESS, E_SYSTEM, r, "[%s] It failed to ipc message", GetErrorMessage(r));
 
-       unique_ptr<String> pResult((String*)responseMessage.GetAt(_SYSTEM_RESPONSE_DATA));
+       String* pResult = (String*)responseMessage.GetAt(_SYSTEM_RESPONSE_DATA);
 
        SysTryReturnResult(NID_SYS, pResult != null, E_SYSTEM, "It is failed to receive Ipc response.");
        SysTryReturnResult(NID_SYS, *pResult == _SYSTEM_RESULT_OK, E_SYSTEM, "It is failed to set brightness.");
@@ -544,7 +544,7 @@ _PowerManagerImpl::SetScreenBrightness(int brightness)
        r = pIpcClient->SendRequest(pMsg.get());
        SysTryReturn(NID_SYS, r == E_SUCCESS, E_SYSTEM, r, "[%s] It failed to ipc message", GetErrorMessage(r));
 
-       unique_ptr<String> pResult((String*)responseMessage.GetAt(_SYSTEM_RESPONSE_DATA));
+       String* pResult = (String*)responseMessage.GetAt(_SYSTEM_RESPONSE_DATA);
 
        SysTryReturnResult(NID_SYS, pResult != null, E_SYSTEM, "It is failed to receive Ipc response.");
        SysTryReturnResult(NID_SYS, *pResult == _SYSTEM_RESULT_OK, E_SYSTEM, "It is failed to set brightness.");