diff options
author | Max Horn | 2006-07-30 12:21:54 +0000 |
---|---|---|
committer | Max Horn | 2006-07-30 12:21:54 +0000 |
commit | 53f73eac8569010ccddfeebeddcdb2619b2616aa (patch) | |
tree | 542e09fc5045ea616390d07f6543dfb32845df98 /engines/saga | |
parent | bd49091afd55cf2663095a1882bab34496ef01f0 (diff) | |
download | scummvm-rg350-53f73eac8569010ccddfeebeddcdb2619b2616aa.tar.gz scummvm-rg350-53f73eac8569010ccddfeebeddcdb2619b2616aa.tar.bz2 scummvm-rg350-53f73eac8569010ccddfeebeddcdb2619b2616aa.zip |
Added explicit string equals/hash functors to a new header common/hash-str.h; removed Hash functor specialization for String and char pointers; changed all code using hashmaps with string keys to explicitly specify whether they honor or ignore case
svn-id: r23634
Diffstat (limited to 'engines/saga')
-rw-r--r-- | engines/saga/game.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/saga/game.cpp b/engines/saga/game.cpp index 38b3d2fb59..2b66e42bf5 100644 --- a/engines/saga/game.cpp +++ b/engines/saga/game.cpp @@ -30,6 +30,7 @@ #include "common/fs.h" #include "common/md5.h" #include "common/hashmap.h" +#include "common/hash-str.h" #include "common/config-manager.h" #include "base/plugins.h" @@ -98,10 +99,10 @@ static int detectGame(const FSList *fslist, Common::Language language, Common::P int gamesCount = ARRAYSIZE(gameDescriptions); int filesCount; - typedef Common::HashMap<Common::String, bool> StringSet; + typedef Common::HashMap<Common::String, bool, Common::CaseSensitiveString_Hash, Common::CaseSensitiveString_EqualTo> StringSet; StringSet filesList; - typedef Common::HashMap<Common::String, Common::String> StringMap; + typedef Common::StringMap StringMap; StringMap filesMD5; Common::String tstr; |