aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorMax Horn2006-07-23 15:08:48 +0000
committerMax Horn2006-07-23 15:08:48 +0000
commit4fcdbb93497d30de4c0fc606b3bbddeabdbb4746 (patch)
tree9c6b98d81c004a191e0c00fa8651e02eab98e593 /common
parent602548cea32612c791ba1951e21f0bdc87ae616d (diff)
downloadscummvm-rg350-4fcdbb93497d30de4c0fc606b3bbddeabdbb4746.tar.gz
scummvm-rg350-4fcdbb93497d30de4c0fc606b3bbddeabdbb4746.tar.bz2
scummvm-rg350-4fcdbb93497d30de4c0fc606b3bbddeabdbb4746.zip
String class usage cleanup
svn-id: r23582
Diffstat (limited to 'common')
-rw-r--r--common/hashmap.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/common/hashmap.cpp b/common/hashmap.cpp
index fe95d4dc45..9e3ca2292a 100644
--- a/common/hashmap.cpp
+++ b/common/hashmap.cpp
@@ -57,21 +57,16 @@ namespace Common {
uint hashit(const char *p) {
uint hash = 0;
byte c;
-
- hash = 0;
while ((c = *p++))
hash = (hash * 31 + c);
-
return hash;
}
uint hashit_lower(const char *p) {
uint hash = 0;
byte c;
-
while ((c = *p++))
hash = (hash * 31 + tolower(c));
-
return hash;
}