diff options
author | Michael Stahl <mstahl@redhat.com> | 2014-11-21 23:42:21 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2014-11-22 00:31:59 +0100 |
commit | df3c5583a0354a0110df033145c05b1fd08e9582 (patch) | |
tree | 6e5ea3215c66b4c4eef0c333e04d9157d14db722 | |
parent | a81027b13f1696c1cb2e8bcae3d712a193ff2dfd (diff) |
svx: remove some pointless default implemented operator== structs
Change-Id: I792af21b0164fed4b2e22a1f95c3898ec631a25b
-rw-r--r-- | include/svx/sdasitm.hxx | 22 |
1 files changed, 2 insertions, 20 deletions
diff --git a/include/svx/sdasitm.hxx b/include/svx/sdasitm.hxx index 5255bcd19ed9..6ecb277a7d23 100644 --- a/include/svx/sdasitm.hxx +++ b/include/svx/sdasitm.hxx @@ -49,20 +49,12 @@ public: typedef std::pair < const OUString, const OUString > PropertyPair; private: - struct SVX_DLLPUBLIC PropertyEq - { - bool operator()( const OUString&, const OUString& ) const; - }; - struct SVX_DLLPUBLIC PropertyPairEq - { - bool operator()( const SdrCustomShapeGeometryItem::PropertyPair&, const SdrCustomShapeGeometryItem::PropertyPair& ) const; - }; struct SVX_DLLPUBLIC PropertyPairHash { size_t operator()( const SdrCustomShapeGeometryItem::PropertyPair& ) const; }; - typedef boost::unordered_map < PropertyPair, sal_Int32, PropertyPairHash, PropertyPairEq > PropertyPairHashMap; - typedef boost::unordered_map< OUString, sal_Int32, OUStringHash, PropertyEq > PropertyHashMap; + typedef boost::unordered_map <PropertyPair, sal_Int32, PropertyPairHash> PropertyPairHashMap; + typedef boost::unordered_map<OUString, sal_Int32, OUStringHash> PropertyHashMap; PropertyHashMap aPropHashMap; PropertyPairHashMap aPropPairHashMap; @@ -121,16 +113,6 @@ inline SdrOnOffItem makeSdrTextAutoGrowSizeItem( bool bAuto ) { // some useful inline methods -inline bool SdrCustomShapeGeometryItem::PropertyEq::operator()( const OUString& r1, const OUString& r2 ) const -{ - return r1.equals( r2 ); -} - -inline bool SdrCustomShapeGeometryItem::PropertyPairEq::operator()( const SdrCustomShapeGeometryItem::PropertyPair& r1, const SdrCustomShapeGeometryItem::PropertyPair& r2 ) const -{ - return ( r1.first.equals( r2.first ) ) && ( r1.second.equals( r2.second ) ); -} - inline size_t SdrCustomShapeGeometryItem::PropertyPairHash::operator()( const SdrCustomShapeGeometryItem::PropertyPair &r1 ) const { return (size_t)r1.first.hashCode() + r1.second.hashCode(); |