aboutsummaryrefslogtreecommitdiff
path: root/common/hash-str.h
diff options
context:
space:
mode:
authorJohannes Schickel2007-05-23 12:02:31 +0000
committerJohannes Schickel2007-05-23 12:02:31 +0000
commitad03c72bdb4eef62cbc05e432d7b49d3d2cd2038 (patch)
treec66a41c596a270e4a8867f25b65d50bf8b4b2f58 /common/hash-str.h
parent81c218fe342bcb84cc0c5f55dd5867a2958f6764 (diff)
downloadscummvm-rg350-ad03c72bdb4eef62cbc05e432d7b49d3d2cd2038.tar.gz
scummvm-rg350-ad03c72bdb4eef62cbc05e432d7b49d3d2cd2038.tar.bz2
scummvm-rg350-ad03c72bdb4eef62cbc05e432d7b49d3d2cd2038.zip
Commit of patch #1715313 ("CORE: STL like algorithm implementation").
svn-id: r26929
Diffstat (limited to 'common/hash-str.h')
-rw-r--r--common/hash-str.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/common/hash-str.h b/common/hash-str.h
index bb61e3091d..99ebf99a10 100644
--- a/common/hash-str.h
+++ b/common/hash-str.h
@@ -29,6 +29,8 @@ namespace Common {
uint hashit(const char *str);
uint hashit_lower(const char *str); // Generate a hash based on the lowercase version of the string
+inline uint hashit(const String &str) { return hashit(str.c_str()); }
+inline uint hashit_lower(const String &str) { return hashit_lower(str.c_str()); }
// FIXME: The following functors obviously are not consistently named