aboutsummaryrefslogtreecommitdiff
path: root/common/str.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'common/str.cpp')
-rw-r--r--common/str.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/str.cpp b/common/str.cpp
index ea35b665af..db610de947 100644
--- a/common/str.cpp
+++ b/common/str.cpp
@@ -227,7 +227,7 @@ bool ConstString::operator ==(const char* x) const
return (x == 0) || (*x == 0);
if (x == 0)
return (_len == 0);
- return (0 != strcmp(_str, x));
+ return (0 == strcmp(_str, x));
}
bool ConstString::operator !=(const ConstString& x) const
@@ -241,7 +241,7 @@ bool ConstString::operator !=(const char* x) const
return (x != 0) && (*x != 0);
if (x == 0)
return (_len != 0);
- return (0 == strcmp(_str, x));
+ return (0 != strcmp(_str, x));
}
bool ConstString::operator < (const ConstString& x) const