summaryrefslogtreecommitdiff
path: root/xmloff/source/transform/TransformerActions.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'xmloff/source/transform/TransformerActions.hxx')
-rw-r--r--xmloff/source/transform/TransformerActions.hxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/xmloff/source/transform/TransformerActions.hxx b/xmloff/source/transform/TransformerActions.hxx
index 3c7f61c7c365..17109c031808 100644
--- a/xmloff/source/transform/TransformerActions.hxx
+++ b/xmloff/source/transform/TransformerActions.hxx
@@ -24,6 +24,7 @@
#include <xmloff/nmspmap.hxx>
#include "TransformerActionInit.hxx"
#include "TransformerAction.hxx"
+#include <boost/functional/hash.hpp>
#include <unordered_map>
struct NameKey_Impl
@@ -57,8 +58,10 @@ struct NameHash_Impl
inline size_t NameHash_Impl::operator()( const NameKey_Impl& r ) const
{
- return static_cast< size_t >( r.m_nPrefix ) +
- static_cast< size_t >( r.m_aLocalName.hashCode() );
+ std::size_t seed = 0;
+ boost::hash_combine(seed, r.m_nPrefix);
+ boost::hash_combine(seed, r.m_aLocalName.hashCode());
+ return seed;
}
inline bool NameHash_Impl::operator()(