Enhanced IsEquivalentTo() method
authorHokwon Song <hokwon.song@samsung.com>
Wed, 5 Jun 2013 07:47:26 +0000 (16:47 +0900)
committerHokwon Song <hokwon.song@samsung.com>
Wed, 5 Jun 2013 07:47:26 +0000 (16:47 +0900)
Change-Id: I59f57a14ce6f7a364e98c1631166fb61c1322038
Signed-off-by: Hokwon Song <hokwon.song@samsung.com>
src/locales/FLclCalendar.cpp

index 5d0afcd..9dd2b91 100644 (file)
@@ -363,10 +363,11 @@ Calendar::SetTimeInMillisec(long long millisec)
 bool
 Calendar::IsEquivalentTo(const Calendar& calendar) const
 {
-       bool isEquivalent = ((_isLenient == calendar.IsLenient()) &&
-                                                (GetFirstDayOfWeek() == calendar.GetFirstDayOfWeek()) &&
-                                                (GetMinDaysInFirstWeek() == calendar.GetMinDaysInFirstWeek()) &&
-                                                (_timeZone == calendar.GetTimeZone()));
+       bool isEquivalent = ((IsLenient() == calendar.IsLenient()) &&
+                               (GetFirstDayOfWeek() == calendar.GetFirstDayOfWeek()) &&
+                               (GetMinDaysInFirstWeek() == calendar.GetMinDaysInFirstWeek()) &&
+                               (GetTimeZone() == calendar.GetTimeZone()) &&
+                               (GetType() == calendar.GetType()));
        return isEquivalent;
 }