diff options
author | Max Horn | 2008-08-27 20:41:28 +0000 |
---|---|---|
committer | Max Horn | 2008-08-27 20:41:28 +0000 |
commit | e5f58ef5bff297cb6172d30725a5e7d63c5be0d2 (patch) | |
tree | 25d24a0ea3b5ea1a868b470e2f770c156e7046e8 /common/hash-str.h | |
parent | cb21c25e417bb546f6678ab9da7440c6e1b4b2fd (diff) | |
download | scummvm-rg350-e5f58ef5bff297cb6172d30725a5e7d63c5be0d2.tar.gz scummvm-rg350-e5f58ef5bff297cb6172d30725a5e7d63c5be0d2.tar.bz2 scummvm-rg350-e5f58ef5bff297cb6172d30725a5e7d63c5be0d2.zip |
Removed various uses of scumm_stricmp by the more readable String::equalsIgnoreCase and String:: compareToIgnoreCase
svn-id: r34198
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 { |