[3.0] Fix Klocwork issue. 1.unused variables 2. local variable name which is same...
authordahyeong.kim <dahyeong.kim@samsung.com>
Fri, 4 Oct 2013 09:53:45 +0000 (18:53 +0900)
committerdahyeong.kim <dahyeong.kim@samsung.com>
Sun, 6 Oct 2013 07:49:22 +0000 (16:49 +0900)
Change-Id: I7db3135c45ec319bcc1bc0f70bc8464a7372d0d0
Signed-off-by: dahyeong.kim <dahyeong.kim@samsung.com>
src/base/FBaseDateTime.cpp
src/base/utility/FBaseUtilUri.cpp

index 5195df3..7ab7d56 100644 (file)
@@ -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;
index 32522d7..a6fd68b 100644 (file)
@@ -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;