From: dahyeong.kim Date: Fri, 4 Oct 2013 09:53:45 +0000 (+0900) Subject: [3.0] Fix Klocwork issue. 1.unused variables 2. local variable name which is same... X-Git-Tag: accepted/tizen/20131018.104622~8^2~3^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7493bcf783b6874f02f2239771c3dcfb301781c2;p=platform%2Fframework%2Fnative%2Fappfw.git [3.0] Fix Klocwork issue. 1.unused variables 2. local variable name which is same to out-param name Change-Id: I7db3135c45ec319bcc1bc0f70bc8464a7372d0d0 Signed-off-by: dahyeong.kim --- diff --git a/src/base/FBaseDateTime.cpp b/src/base/FBaseDateTime.cpp index 5195df3..7ab7d56 100644 --- a/src/base/FBaseDateTime.cpp +++ b/src/base/FBaseDateTime.cpp @@ -54,8 +54,6 @@ enum DateTimeLimits }; static const int TICKS_PER_MILLISECOND = 1; -static const long SEC_IN_A_DAY = (24L * 60L * 60L); -static const long long MINIMUM_VALUE_IN_SEC = 86400LL; static const int DAYS_IN_LEAP_YEAR[] = { 0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335, 366 }; static const int DAYS[] = { 0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334, 365 }; static const int INT_HALF_BIT = 16; diff --git a/src/base/utility/FBaseUtilUri.cpp b/src/base/utility/FBaseUtilUri.cpp index 32522d7..a6fd68b 100644 --- a/src/base/utility/FBaseUtilUri.cpp +++ b/src/base/utility/FBaseUtilUri.cpp @@ -1399,13 +1399,13 @@ Uri::ParseHierarchicalUri(const Tizen::Base::String& str, int startSsp, Tizen::B curIndex += 2; String special(L"/?#"); - int index = Scan(str, curIndex, special); - if (index > curIndex) + int matchedIndex = Scan(str, curIndex, special); + if (matchedIndex > curIndex) { - r = str.SubString(curIndex, index - curIndex, authority); + r = str.SubString(curIndex, matchedIndex - curIndex, authority); SysTryCatch(NID_BASE_UTIL, r == E_SUCCESS, , r, "[%s] Propagating.", GetErrorMessage(r)); } - else if (index >= str.GetLength()) + else if (matchedIndex >= str.GetLength()) { r = E_INVALID_FORMAT; goto CATCH;