diff options
Diffstat (limited to 'common/hash-str.h')
| -rw-r--r-- | common/hash-str.h | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/common/hash-str.h b/common/hash-str.h index f64b62daed..40557037e7 100644 --- a/common/hash-str.h +++ b/common/hash-str.h @@ -39,7 +39,7 @@ inline uint hashit_lower(const String &str) { return hashit_lower(str.c_str());  // FIXME: The following functors obviously are not consistently named  struct CaseSensitiveString_EqualTo { -	bool operator()(const String& x, const String& y) const { return strcmp(x.c_str(), y.c_str()) == 0; } +	bool operator()(const String& x, const String& y) const { return x.equals(y); }  };  struct CaseSensitiveString_Hash { @@ -48,7 +48,7 @@ struct CaseSensitiveString_Hash {  struct IgnoreCase_EqualTo { -	bool operator()(const String& x, const String& y) const { return scumm_stricmp(x.c_str(), y.c_str()) == 0; } +	bool operator()(const String& x, const String& y) const { return x.equalsIgnoreCase(y); }  };  struct IgnoreCase_Hash { | 
