diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-10-19 17:18:17 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-10-23 08:15:35 +0200 |
commit | 87a9979c8938b800aab6e35903d60d24892e7f2e (patch) | |
tree | 6beb01f22537e63df24c023ab65d391a7bee0cf6 /comphelper | |
parent | d76c4e5c9aaf8bd27ec97679bcaeba5b18aca493 (diff) |
overload std::hash for OUString and OString
no need to explicitly specify it anymore
Change-Id: I6ad9259cce77201fdd75152533f5151aae83e9ec
Reviewed-on: https://gerrit.libreoffice.org/43567
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'comphelper')
-rw-r--r-- | comphelper/source/container/embeddedobjectcontainer.cxx | 2 | ||||
-rw-r--r-- | comphelper/source/misc/namedvaluecollection.cxx | 2 | ||||
-rw-r--r-- | comphelper/source/property/propagg.cxx | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/comphelper/source/container/embeddedobjectcontainer.cxx b/comphelper/source/container/embeddedobjectcontainer.cxx index a3fce00e1c7b..520d37e1f8c4 100644 --- a/comphelper/source/container/embeddedobjectcontainer.cxx +++ b/comphelper/source/container/embeddedobjectcontainer.cxx @@ -54,7 +54,7 @@ using namespace ::com::sun::star; namespace comphelper { -typedef std::unordered_map<OUString, uno::Reference <embed::XEmbeddedObject>, OUStringHash> +typedef std::unordered_map<OUString, uno::Reference <embed::XEmbeddedObject>> EmbeddedObjectContainerNameMap; struct EmbedImpl diff --git a/comphelper/source/misc/namedvaluecollection.cxx b/comphelper/source/misc/namedvaluecollection.cxx index 9c03be3fd861..d803c6fee8c3 100644 --- a/comphelper/source/misc/namedvaluecollection.cxx +++ b/comphelper/source/misc/namedvaluecollection.cxx @@ -45,7 +45,7 @@ namespace comphelper using ::com::sun::star::lang::IllegalArgumentException; using ::com::sun::star::beans::PropertyState_DIRECT_VALUE; - typedef std::unordered_map< OUString, Any, OUStringHash > NamedValueRepository; + typedef std::unordered_map< OUString, Any > NamedValueRepository; struct NamedValueCollection_Impl { diff --git a/comphelper/source/property/propagg.cxx b/comphelper/source/property/propagg.cxx index dd97cee7f4fe..8bda3f26bf1f 100644 --- a/comphelper/source/property/propagg.cxx +++ b/comphelper/source/property/propagg.cxx @@ -75,7 +75,7 @@ OPropertyArrayAggregationHelper::OPropertyArrayAggregationHelper( // fill aDelegatorProps with names from _rProperties for a fast existence check // different kinds of properties are processed differently - std::unordered_set< OUString, OUStringHash > aDelegatorProps; + std::unordered_set< OUString > aDelegatorProps; aDelegatorProps.reserve( _rProperties.getLength() ); for( auto &delegateProp: _rProperties ) { |