summaryrefslogtreecommitdiff
path: root/xmloff/source/draw/EnhancedCustomShapeToken.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'xmloff/source/draw/EnhancedCustomShapeToken.cxx')
-rw-r--r--xmloff/source/draw/EnhancedCustomShapeToken.cxx14
1 files changed, 12 insertions, 2 deletions
diff --git a/xmloff/source/draw/EnhancedCustomShapeToken.cxx b/xmloff/source/draw/EnhancedCustomShapeToken.cxx
index 1a4ddcc67cfe..169872ba6c86 100644
--- a/xmloff/source/draw/EnhancedCustomShapeToken.cxx
+++ b/xmloff/source/draw/EnhancedCustomShapeToken.cxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -29,11 +30,18 @@
#include "precompiled_xmloff.hxx"
#include "EnhancedCustomShapeToken.hxx"
#include <osl/mutex.hxx>
-#include <hash_map>
+#include <boost/unordered_map.hpp>
#include <string.h>
namespace xmloff { namespace EnhancedCustomShapeToken {
+struct THash
+{
+ size_t operator()( const char* s ) const
+ {
+ return rtl_str_hashCode(s);
+ }
+};
struct TCheck
{
bool operator()( const char* s1, const char* s2 ) const
@@ -41,7 +49,7 @@ struct TCheck
return strcmp( s1, s2 ) == 0;
}
};
-typedef std::hash_map< const char*, EnhancedCustomShapeTokenEnum, std::hash<const char*>, TCheck> TypeNameHashMap;
+typedef boost::unordered_map< const char*, EnhancedCustomShapeTokenEnum, THash, TCheck> TypeNameHashMap;
static TypeNameHashMap* pHashMap = NULL;
static ::osl::Mutex& getHashMapMutex()
{
@@ -219,3 +227,5 @@ rtl::OUString EASGet( const EnhancedCustomShapeTokenEnum eToken )
}
}
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */