summaryrefslogtreecommitdiff
path: root/libicui18n/libicui18n/rbtz.cpp.patch
blob: 551cebe020c937b5021859ee8bc370066ea2c1f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
--- libicui18n/i18n/rbtz.cpp	2019-12-23 14:38:40.227889254 +0300
+++ libicui18n/rbtz.cpp	2020-07-21 14:30:49.408841121 +0300
@@ -76,7 +76,7 @@ RuleBasedTimeZone::~RuleBasedTimeZone()
 
 RuleBasedTimeZone&
 RuleBasedTimeZone::operator=(const RuleBasedTimeZone& right) {
-    if (*this != right) {
+    if (!(*this == right)) {
         BasicTimeZone::operator=(right);
         deleteRules();
         fInitialRule = right.fInitialRule->clone();
@@ -98,7 +98,7 @@ RuleBasedTimeZone::operator==(const Time
         return FALSE;
     }
     RuleBasedTimeZone *rbtz = (RuleBasedTimeZone*)&that;
-    if (*fInitialRule != *(rbtz->fInitialRule)) {
+    if (!(*fInitialRule == *(rbtz->fInitialRule))) {
         return FALSE;
     }
     if (compareRules(fHistoricRules, rbtz->fHistoricRules)
@@ -532,7 +532,7 @@ RuleBasedTimeZone::hasSameRules(const Ti
         return FALSE;
     }
     const RuleBasedTimeZone& that = (const RuleBasedTimeZone&)other;
-    if (*fInitialRule != *(that.fInitialRule)) {
+    if (!(*fInitialRule == *(that.fInitialRule))) {
         return FALSE;
     }
     if (compareRules(fHistoricRules, that.fHistoricRules)