diff options
author | Herbert Dürr <hdu@apache.org> | 2013-04-16 12:03:08 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-05-25 13:28:11 +0100 |
commit | a6659d6df6d68a4df43e70376cf6eea1fb54b932 (patch) | |
tree | 9532788f0dd7be2c223689aedfa8fd8e6466ac5e /include | |
parent | 1fb61b87136e556f13537794d30077606f4949c9 (diff) |
provide complete types of some SdrCustomShapeGeometryItem functors...
before they are used
(cherry picked from commit 7d6c5e79a17aa2ff392433667187c4bfe4ee2432)
Conflicts:
svx/inc/svx/sdasitm.hxx
svx/source/items/customshapeitem.cxx
Change-Id: Iac3e37bcfd4ab26d97411092259da2cc1879c2de
Diffstat (limited to 'include')
-rw-r--r-- | include/svx/sdasitm.hxx | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/svx/sdasitm.hxx b/include/svx/sdasitm.hxx index e54bf1f654e2..0f7164e80589 100644 --- a/include/svx/sdasitm.hxx +++ b/include/svx/sdasitm.hxx @@ -127,6 +127,23 @@ public: SdrTextAutoGrowSizeItem( SvStream& rIn ) : SdrOnOffItem( SDRATTR_TEXT_AUTOGROWSIZE, rIn ) {} }; +// 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(); +}; + #endif /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |