summaryrefslogtreecommitdiff
path: root/xmloff/inc/StyleMap.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'xmloff/inc/StyleMap.hxx')
-rw-r--r--xmloff/inc/StyleMap.hxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/xmloff/inc/StyleMap.hxx b/xmloff/inc/StyleMap.hxx
index 8fb76e61104d..aef67399b8cd 100644
--- a/xmloff/inc/StyleMap.hxx
+++ b/xmloff/inc/StyleMap.hxx
@@ -22,6 +22,7 @@
#include <com/sun/star/lang/XUnoTunnel.hpp>
#include <cppuhelper/implbase.hxx>
+#include <boost/functional/hash.hpp>
#include <unordered_map>
struct StyleNameKey_Impl
@@ -46,8 +47,10 @@ struct StyleNameHash_Impl
inline size_t StyleNameHash_Impl::operator()( const StyleNameKey_Impl& r ) const
{
- return static_cast< size_t >( r.m_nFamily ) +
- static_cast< size_t >( r.m_aName.hashCode() );
+ std::size_t seed = 0;
+ boost::hash_combine(seed, r.m_nFamily);
+ boost::hash_combine(seed, r.m_aName.hashCode());
+ return seed;
}
inline bool StyleNameHash_Impl::operator()(