From d9518cb445ff9656ea704a9c0fccb43946e48d37 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Thu, 30 Dec 2010 20:49:53 +0000 Subject: that hash isn't guaranteed to do what you want it to do --- l10ntools/inc/export.hxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'l10ntools') diff --git a/l10ntools/inc/export.hxx b/l10ntools/inc/export.hxx index 887ce700f9fc..e9f396f5d9c2 100644 --- a/l10ntools/inc/export.hxx +++ b/l10ntools/inc/export.hxx @@ -80,8 +80,7 @@ struct lessByteString{ struct hashByteString{ size_t operator()( const ByteString& rName ) const{ - std::hash< const char* > myHash; - return myHash( rName.GetBuffer() ); + return rtl_str_hashCode_WithLength(rName.GetBuffer(), rName.Len() ); } }; -- cgit