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 /svx/source | |
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 'svx/source')
-rw-r--r-- | svx/source/items/customshapeitem.cxx | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/svx/source/items/customshapeitem.cxx b/svx/source/items/customshapeitem.cxx index 5b8ed9f51c50..87b8cfc3dd3f 100644 --- a/svx/source/items/customshapeitem.cxx +++ b/svx/source/items/customshapeitem.cxx @@ -31,23 +31,12 @@ SdrCustomShapeDataItem::SdrCustomShapeDataItem() : SfxStringItem( SDRATTR_CUSTOMSHAPE_DATA, String() ) {} -bool SdrCustomShapeGeometryItem::PropertyEq::operator()( const OUString& r1, const OUString& r2 ) const -{ - return r1.equals( r2 ); -} -bool SdrCustomShapeGeometryItem::PropertyPairEq::operator()( const SdrCustomShapeGeometryItem::PropertyPair& r1, const SdrCustomShapeGeometryItem::PropertyPair& r2 ) const -{ - return ( r1.first.equals( r2.first ) ) && ( r1.second.equals( r2.second ) ); -} -size_t SdrCustomShapeGeometryItem::PropertyPairHash::operator()( const SdrCustomShapeGeometryItem::PropertyPair &r1 ) const -{ - return (size_t)r1.first.hashCode() + r1.second.hashCode(); -}; - TYPEINIT1_FACTORY( SdrCustomShapeGeometryItem, SfxPoolItem , new SdrCustomShapeGeometryItem); + SdrCustomShapeGeometryItem::SdrCustomShapeGeometryItem() : SfxPoolItem( SDRATTR_CUSTOMSHAPE_GEOMETRY ) {} + SdrCustomShapeGeometryItem::SdrCustomShapeGeometryItem( const uno::Sequence< beans::PropertyValue >& rVal ) : SfxPoolItem( SDRATTR_CUSTOMSHAPE_GEOMETRY ) { |