Fixed compiler warning to prevent svace issue 21/69621/6 submit/tizen/20160518.100935
authorAndrey Klimenko <and.klimenko@samsung.com>
Mon, 16 May 2016 07:14:50 +0000 (10:14 +0300)
committerAndrey Klimenko <and.klimenko@samsung.com>
Wed, 18 May 2016 08:34:11 +0000 (01:34 -0700)
Change-Id: Ia3b0a1edf30d873e502963c325a5bc12123a8494
Signed-off-by: Andrey Klimenko <and.klimenko@samsung.com>
src/Common/Utils/src/TimeUtils.cpp

index c6af7ef812dee61a31c254022531ea8f9d551f3f..a12a94ecd20f1b6afd25c2a55347da36aedabfc5 100644 (file)
@@ -71,7 +71,7 @@ std::string TimeUtils::makeThreadTimeString(time_t msgTime)
     }
     else
     {
-        bool notThisYear = notThisYear = (msgTimeTm.tm_year - curTimeTm.tm_year != 0);
+        bool notThisYear = (msgTimeTm.tm_year - curTimeTm.tm_year != 0);
         const std::string &date = notThisYear ? dateListYear : dateListDefault;
         return getFormattedDate(locale, getDateBestPattern(locale, date), msgTime);
     }