diff options
author | Max Horn | 2002-11-15 17:45:23 +0000 |
---|---|---|
committer | Max Horn | 2002-11-15 17:45:23 +0000 |
commit | d2156bd26fb855b18db2d69642ab584aca532bd1 (patch) | |
tree | d0c789397ceb3c74a603c914bbbcb7730659826e | |
parent | 5be4474a9a915633af66c5f7cea41efc4d315fc3 (diff) | |
download | scummvm-rg350-d2156bd26fb855b18db2d69642ab584aca532bd1.tar.gz scummvm-rg350-d2156bd26fb855b18db2d69642ab584aca532bd1.tar.bz2 scummvm-rg350-d2156bd26fb855b18db2d69642ab584aca532bd1.zip |
fix operator == and !=
svn-id: r5570
-rw-r--r-- | common/str.cpp | 4 |
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 |