summaryrefslogtreecommitdiff
path: root/l10ntools/inc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-02-11 12:44:51 +0000
committerCaolán McNamara <caolanm@redhat.com>2011-02-11 12:44:51 +0000
commit7df76ae88528bec87496084e488e13b15b72642f (patch)
tree49e9251a7f60e136058ec3480cf72639f370fa5f /l10ntools/inc
parent5bd709c6ab5c8e8ca6aee75af2b14b0b30281286 (diff)
(std|boost)::hash on a const char* hashes the pointer not the contents
Diffstat (limited to 'l10ntools/inc')
-rw-r--r--l10ntools/inc/tagtest.hxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/l10ntools/inc/tagtest.hxx b/l10ntools/inc/tagtest.hxx
index e932d16b79c3..16fb7b20fdbb 100644
--- a/l10ntools/inc/tagtest.hxx
+++ b/l10ntools/inc/tagtest.hxx
@@ -58,13 +58,10 @@ struct lessByteString{
struct hashByteString{
size_t operator()( const ByteString& rName ) const{
- boost::hash< const char* > myHash;
- return myHash( rName.GetBuffer() );
+ return rtl_str_hashCode(rName.GetBuffer());
}
};
-
-
typedef boost::unordered_map<ByteString , String , hashByteString,equalByteString>
StringHashMap;