From: Andrzej Popowski Date: Thu, 24 Dec 2015 10:24:57 +0000 (+0100) Subject: [Systeminfo] - fixing SVACE issues X-Git-Tag: submit/tizen/20151229.075711^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f08e6d50321096aa862e7924932dec74e51e3417;p=platform%2Fcore%2Fapi%2Fwebapi-plugins.git [Systeminfo] - fixing SVACE issues Change-Id: I874abee0df42658cbc713fa6c63f6678bdcc7182 Signed-off-by: Andrzej Popowski --- diff --git a/src/systeminfo/systeminfo-utils.cpp b/src/systeminfo/systeminfo-utils.cpp index ac7b6b95..7877f7f3 100644 --- a/src/systeminfo/systeminfo-utils.cpp +++ b/src/systeminfo/systeminfo-utils.cpp @@ -127,7 +127,8 @@ PlatformResult SysteminfoUtils::GetTotalMemory(long long* result) { ("device_memory_get_total error: %d (%s)", ret, get_error_message(ret))); } - *result = static_cast(value*MEMORY_TO_BYTE); + *result = static_cast(value) * MEMORY_TO_BYTE; + return PlatformResult(ErrorCode::NO_ERROR); } @@ -144,7 +145,7 @@ PlatformResult SysteminfoUtils::GetAvailableMemory(long long* result) { ("device_memory_get_available error: %d (%s)", ret, get_error_message(ret))); } - *result = static_cast(value*MEMORY_TO_BYTE); + *result = static_cast(value) * MEMORY_TO_BYTE; return PlatformResult(ErrorCode::NO_ERROR); }