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 /pyuno/source/module | |
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 'pyuno/source/module')
-rw-r--r-- | pyuno/source/module/pyuno_impl.hxx | 8 | ||||
-rw-r--r-- | pyuno/source/module/pyuno_module.cxx | 2 |
2 files changed, 4 insertions, 6 deletions
diff --git a/pyuno/source/module/pyuno_impl.hxx b/pyuno/source/module/pyuno_impl.hxx index d3f7a6a5c628..ea0e419ffb1b 100644 --- a/pyuno/source/module/pyuno_impl.hxx +++ b/pyuno/source/module/pyuno_impl.hxx @@ -190,16 +190,14 @@ typedef std::unordered_map typedef std::unordered_map < -OUString, -PyRef, -OUStringHash + OUString, + PyRef > ExceptionClassMap; typedef std::unordered_map < OUString, - css::uno::Sequence< sal_Int16 >, - OUStringHash + css::uno::Sequence< sal_Int16 > > MethodOutIndexMap; typedef std::unordered_set< PyRef , PyRef::Hash > ClassSet; diff --git a/pyuno/source/module/pyuno_module.cxx b/pyuno/source/module/pyuno_module.cxx index ffc369387c56..8c738aedbecc 100644 --- a/pyuno/source/module/pyuno_module.cxx +++ b/pyuno/source/module/pyuno_module.cxx @@ -81,7 +81,7 @@ class fillStructState // Keyword arguments used PyObject *used; // Which structure members are initialised - std::unordered_map <OUString, bool, OUStringHash> initialised; + std::unordered_map <OUString, bool> initialised; // How many positional arguments are consumed // This is always the so-many first ones sal_Int32 nPosConsumed; |