diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2021-05-01 22:13:37 +0900 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2021-05-11 12:28:24 +0200 |
commit | eb6819e74a66750235d3a4a894479faeee8146e2 (patch) | |
tree | c898ab63731449cf5176f35a16bacea0bb58f864 /xmloff | |
parent | e6c0c282be59a5198932604d6c40de837b7cb548 (diff) |
change usage of boost::hash_combine to o3tl::hash_combine
Change-Id: I840518a36ac43d36c95f38e09c7bfcfe1a25a525
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114984
Tested-by: Tomaž Vajngerl <quikee@gmail.com>
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/inc/StyleMap.hxx | 6 | ||||
-rw-r--r-- | xmloff/source/core/xmltkmap.cxx | 6 | ||||
-rw-r--r-- | xmloff/source/forms/property_meta_data.cxx | 6 | ||||
-rw-r--r-- | xmloff/source/transform/TransformerActions.hxx | 6 |
4 files changed, 12 insertions, 12 deletions
diff --git a/xmloff/inc/StyleMap.hxx b/xmloff/inc/StyleMap.hxx index 0b2d302142a1..8b122fd0f9bc 100644 --- a/xmloff/inc/StyleMap.hxx +++ b/xmloff/inc/StyleMap.hxx @@ -22,7 +22,7 @@ #include <com/sun/star/lang/XUnoTunnel.hpp> #include <comphelper/servicehelper.hxx> #include <cppuhelper/implbase.hxx> -#include <boost/functional/hash.hpp> +#include <o3tl/hash_combine.hxx> #include <unordered_map> enum class XmlStyleFamily; @@ -50,8 +50,8 @@ struct StyleNameHash_Impl inline size_t StyleNameHash_Impl::operator()( const StyleNameKey_Impl& r ) const { std::size_t seed = 0; - boost::hash_combine(seed, r.m_nFamily); - boost::hash_combine(seed, r.m_aName.hashCode()); + o3tl::hash_combine(seed, r.m_nFamily); + o3tl::hash_combine(seed, r.m_aName.hashCode()); return seed; } diff --git a/xmloff/source/core/xmltkmap.cxx b/xmloff/source/core/xmltkmap.cxx index 8efb26c1131e..5e95afc44296 100644 --- a/xmloff/source/core/xmltkmap.cxx +++ b/xmloff/source/core/xmltkmap.cxx @@ -20,7 +20,7 @@ #include <rtl/ustring.hxx> #include <xmloff/xmltkmap.hxx> #include <xmloff/xmltoken.hxx> -#include <boost/functional/hash.hpp> +#include <o3tl/hash_combine.hxx> #include <unordered_map> #include <utility> @@ -35,8 +35,8 @@ private: std::size_t operator()(const std::pair<sal_uInt16,OUString> &pair) const { std::size_t seed = 0; - boost::hash_combine(seed, pair.first); - boost::hash_combine(seed, pair.second.hashCode()); + o3tl::hash_combine(seed, pair.first); + o3tl::hash_combine(seed, pair.second.hashCode()); return seed; } }; diff --git a/xmloff/source/forms/property_meta_data.cxx b/xmloff/source/forms/property_meta_data.cxx index f957121daa2f..ce5760856711 100644 --- a/xmloff/source/forms/property_meta_data.cxx +++ b/xmloff/source/forms/property_meta_data.cxx @@ -25,7 +25,7 @@ #include <xmloff/xmltoken.hxx> #include <xmloff/xmlnamespace.hxx> -#include <boost/functional/hash.hpp> +#include <o3tl/hash_combine.hxx> #include <tools/debug.hxx> #include <osl/diagnose.h> #include <sal/log.hxx> @@ -96,8 +96,8 @@ namespace xmloff::metadata size_t operator()( const AttributeDescription& i_attribute ) const { std::size_t seed = 0; - boost::hash_combine(seed, i_attribute.attributeToken); - boost::hash_combine(seed, i_attribute.namespacePrefix); + o3tl::hash_combine(seed, i_attribute.attributeToken); + o3tl::hash_combine(seed, i_attribute.namespacePrefix); return seed; } }; diff --git a/xmloff/source/transform/TransformerActions.hxx b/xmloff/source/transform/TransformerActions.hxx index f80b06a1df3e..a8bfb77221c9 100644 --- a/xmloff/source/transform/TransformerActions.hxx +++ b/xmloff/source/transform/TransformerActions.hxx @@ -23,7 +23,7 @@ #include <xmloff/namespacemap.hxx> #include "TransformerActionInit.hxx" #include "TransformerAction.hxx" -#include <boost/functional/hash.hpp> +#include <o3tl/hash_combine.hxx> #include <unordered_map> struct NameKey_Impl @@ -58,8 +58,8 @@ struct NameHash_Impl inline size_t NameHash_Impl::operator()( const NameKey_Impl& r ) const { std::size_t seed = 0; - boost::hash_combine(seed, r.m_nPrefix); - boost::hash_combine(seed, r.m_aLocalName.hashCode()); + o3tl::hash_combine(seed, r.m_nPrefix); + o3tl::hash_combine(seed, r.m_aLocalName.hashCode()); return seed; } |