From 7e018afaf74ab118fe21d92edc9fb95ddea5d61b Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 24 Jul 2014 11:31:39 +0200 Subject: simplify return argument of SfxPoolItem::GetPresentation since all two of the actual call-sites only care about whether it is a valid presentation or not, not what kind of presentation it is. Change-Id: I75717c88878d37b2897741b0c833ff283b3fee59 --- sfx2/source/config/evntconf.cxx | 4 ++-- sfx2/source/doc/frmdescr.cxx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'sfx2') diff --git a/sfx2/source/config/evntconf.cxx b/sfx2/source/config/evntconf.cxx index 79901d9ddd97..9c43b48a5d46 100644 --- a/sfx2/source/config/evntconf.cxx +++ b/sfx2/source/config/evntconf.cxx @@ -98,14 +98,14 @@ bool SfxEventNamesItem::operator==( const SfxPoolItem& rAttr ) const } -SfxItemPresentation SfxEventNamesItem::GetPresentation( SfxItemPresentation, +bool SfxEventNamesItem::GetPresentation( SfxItemPresentation, SfxMapUnit, SfxMapUnit, OUString &rText, const IntlWrapper* ) const { rText = OUString(); - return SFX_ITEM_PRESENTATION_NONE; + return false; } SfxPoolItem* SfxEventNamesItem::Clone( SfxItemPool *) const diff --git a/sfx2/source/doc/frmdescr.cxx b/sfx2/source/doc/frmdescr.cxx index 6b9e23663f67..66c0329faed1 100644 --- a/sfx2/source/doc/frmdescr.cxx +++ b/sfx2/source/doc/frmdescr.cxx @@ -198,7 +198,7 @@ SfxPoolItem* SfxFrameDescriptorItem::Clone( SfxItemPool* ) const -SfxItemPresentation SfxFrameDescriptorItem::GetPresentation +bool SfxFrameDescriptorItem::GetPresentation ( SfxItemPresentation /*ePres*/, SfxMapUnit /*eCoreUnit*/, @@ -208,7 +208,7 @@ SfxItemPresentation SfxFrameDescriptorItem::GetPresentation ) const { rText = OUString(); - return SFX_ITEM_PRESENTATION_NONE; + return false; } -- cgit