summaryrefslogtreecommitdiff
path: root/l10ntools/inc/tagtest.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'l10ntools/inc/tagtest.hxx')
-rw-r--r--l10ntools/inc/tagtest.hxx12
1 files changed, 4 insertions, 8 deletions
diff --git a/l10ntools/inc/tagtest.hxx b/l10ntools/inc/tagtest.hxx
index f301a3539bcf..f905ec627d72 100644
--- a/l10ntools/inc/tagtest.hxx
+++ b/l10ntools/inc/tagtest.hxx
@@ -30,8 +30,7 @@
#define _TAGTEST_HXX_
#include <tools/string.hxx>
-#include <tools/list.hxx>
-#include <hash_map> /* std::hashmap*/
+#include <boost/unordered_map.hpp>
#include <vector>
class GSILine;
@@ -58,14 +57,11 @@ struct lessByteString{
struct hashByteString{
size_t operator()( const ByteString& rName ) const{
- std::hash< const char* > myHash;
- return myHash( rName.GetBuffer() );
+ return rtl_str_hashCode(rName.GetBuffer());
}
};
-
-
-typedef std::hash_map<ByteString , String , hashByteString,equalByteString>
+typedef boost::unordered_map<ByteString , String , hashByteString,equalByteString>
StringHashMap;
class TokenInfo
@@ -245,7 +241,7 @@ public:
maList.clear();
}
- void insert( TokenInfo p, size_t nIndex = LIST_APPEND )
+ void insert( TokenInfo p, size_t nIndex = size_t(-1) )
{
if ( nIndex < maList.size() ) {
TokenListImpl::iterator it = maList.begin();