From 22f2cf3ccc6d0c9ba2c2860735e789d6b3a25f72 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 29 Apr 2019 16:24:12 +0200 Subject: implement std::hash for css::uno::Reference and rtl::Reference The declaration in BarChart.cxx is particularly suspicious, because it was using a < for the KeyEqual template parameter. Been there since: commit b2c3233e5f267b5d244d722a94424a3b224b3314 Date: Thu Dec 21 20:08:33 2017 +0900 chart2: suspend/resume setting rects dirty for 3D shapes comphelper::OInterfaceCompare is no longer necessary Change-Id: I8278c4a3d9113a18570ca237cd05d553ec8f3975 Reviewed-on: https://gerrit.libreoffice.org/71537 Tested-by: Jenkins Reviewed-by: Noel Grandin --- stoc/source/servicemanager/servicemanager.cxx | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) (limited to 'stoc/source/servicemanager') diff --git a/stoc/source/servicemanager/servicemanager.cxx b/stoc/source/servicemanager/servicemanager.cxx index d6eac9b1ccf0..81435c183631 100644 --- a/stoc/source/servicemanager/servicemanager.cxx +++ b/stoc/source/servicemanager/servicemanager.cxx @@ -133,28 +133,8 @@ Sequence< OUString > retrieveAsciiValueList( /***************************************************************************** Enumeration by ServiceName *****************************************************************************/ -struct hashRef_Impl -{ - size_t operator()(const Reference & rName) const - { - // query to XInterface. The cast to XInterface* must be the same for the same object - Reference x( Reference::query( rName ) ); - return reinterpret_cast(x.get()); - } -}; -struct equaltoRef_Impl -{ - bool operator()(const Reference & rName1, const Reference & rName2 ) const - { return rName1 == rName2; } -}; - -typedef std::unordered_set -< - Reference, - hashRef_Impl, - equaltoRef_Impl -> HashSet_Ref; +typedef std::unordered_set< Reference > HashSet_Ref; class ServiceEnumeration_Impl : public WeakImplHelper< XEnumeration > -- cgit