You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by hd...@apache.org on 2013/03/04 19:26:44 UTC
svn commit: r1452433 - /openoffice/trunk/main/l10ntools/inc/tagtest.hxx
Author: hdu
Date: Mon Mar 4 18:26:44 2013
New Revision: 1452433
URL: http://svn.apache.org/r1452433
Log:
the hash specialization for c-strings was specific to stlport<=4 \!\!\!
Modified:
openoffice/trunk/main/l10ntools/inc/tagtest.hxx
Modified: openoffice/trunk/main/l10ntools/inc/tagtest.hxx
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/l10ntools/inc/tagtest.hxx?rev=1452433&r1=1452432&r2=1452433&view=diff
==============================================================================
--- openoffice/trunk/main/l10ntools/inc/tagtest.hxx (original)
+++ openoffice/trunk/main/l10ntools/inc/tagtest.hxx Mon Mar 4 18:26:44 2013
@@ -27,6 +27,7 @@
#include <tools/string.hxx>
#include <tools/list.hxx>
#include <hash_map> /* std::hashmap*/
+#include <rtl/string.h>
class GSILine;
@@ -53,8 +54,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());
}
};