diff options
author | Noel Grandin <noel@peralex.com> | 2014-07-24 15:43:00 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-07-29 12:26:17 +0200 |
commit | 9d140ccdb3b029b3d87ee23e87789f8a67ce8d5b (patch) | |
tree | cb8e64e248fad959b2650b45c165801f4bbd4145 /svx/source/items/algitem.cxx | |
parent | a0b89100be8ccc2b60d08d7e3819cd247a6042b0 (diff) |
drop use of SFX_ITEM_PRESENTATION_NONE
since none of the call sites specify it
Change-Id: I9c15f0e042e21f6f78560c1962a533112d588c90
Diffstat (limited to 'svx/source/items/algitem.cxx')
-rw-r--r-- | svx/source/items/algitem.cxx | 19 |
1 files changed, 3 insertions, 16 deletions
diff --git a/svx/source/items/algitem.cxx b/svx/source/items/algitem.cxx index 5f534a31c43d..7615aa8c8cc6 100644 --- a/svx/source/items/algitem.cxx +++ b/svx/source/items/algitem.cxx @@ -62,23 +62,13 @@ SvxOrientationItem::SvxOrientationItem( sal_Int32 nRotation, bool bStacked, cons bool SvxOrientationItem::GetPresentation ( - SfxItemPresentation ePres, + SfxItemPresentation /*ePres*/, SfxMapUnit /*eCoreUnit*/, SfxMapUnit /*ePresUnit*/, OUString& rText, const IntlWrapper * ) const { - switch ( ePres ) - { - case SFX_ITEM_PRESENTATION_NONE: - rText = OUString(); - return false; - case SFX_ITEM_PRESENTATION_NAMELESS: - case SFX_ITEM_PRESENTATION_COMPLETE: - rText = GetValueText( GetValue() ); - return true; - default: ; //prevent warning - } - return false; + rText = GetValueText( GetValue() ); + return true; } @@ -240,9 +230,6 @@ bool SvxMarginItem::GetPresentation switch ( ePres ) { - case SFX_ITEM_PRESENTATION_NONE: - rText = OUString(); - return false; case SFX_ITEM_PRESENTATION_NAMELESS: { rText = GetMetricText( (long)nLeftMargin, eCoreUnit, ePresUnit, pIntl ) + |