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 /sc | |
parent | a0b89100be8ccc2b60d08d7e3819cd247a6042b0 (diff) |
drop use of SFX_ITEM_PRESENTATION_NONE
since none of the call sites specify it
Change-Id: I9c15f0e042e21f6f78560c1962a533112d588c90
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/data/attrib.cxx | 21 |
1 files changed, 4 insertions, 17 deletions
diff --git a/sc/source/core/data/attrib.cxx b/sc/source/core/data/attrib.cxx index f0edf65caa28..d7affc2708a3 100644 --- a/sc/source/core/data/attrib.cxx +++ b/sc/source/core/data/attrib.cxx @@ -302,10 +302,6 @@ bool ScProtectionAttr::GetPresentation switch ( ePres ) { - case SFX_ITEM_PRESENTATION_NONE: - rText = OUString(); - break; - case SFX_ITEM_PRESENTATION_NAMELESS: rText = GetValueText(); break; @@ -328,11 +324,10 @@ bool ScProtectionAttr::GetPresentation + (!bHidePrint ? aStrYes : aStrNo); break; - default: - ePres = SFX_ITEM_PRESENTATION_NONE; + default: break; } - return ePres != SFX_ITEM_PRESENTATION_NONE; + return true; } bool ScProtectionAttr::operator==( const SfxPoolItem& rItem ) const @@ -433,7 +428,7 @@ bool ScRangeItem::GetPresentation } } - return ePres != SFX_ITEM_PRESENTATION_NONE; + return true; } // ScTableListItem - List from Tables (-numbers) @@ -514,10 +509,6 @@ bool ScTableListItem::GetPresentation { switch ( ePres ) { - case SFX_ITEM_PRESENTATION_NONE: - rText = OUString(); - return ePres; - case SFX_ITEM_PRESENTATION_NAMELESS: { rText = "("; @@ -1025,7 +1016,7 @@ bool ScPageScaleToItem::GetPresentation( SfxItemPresentation ePres, SfxMapUnit, SfxMapUnit, OUString& rText, const IntlWrapper* ) const { rText = OUString(); - if( !IsValid() || (ePres == SFX_ITEM_PRESENTATION_NONE) ) + if( !IsValid()) return false; OUString aName( ScGlobal::GetRscString( STR_SCATTR_PAGE_SCALETO ) ); @@ -1036,10 +1027,6 @@ bool ScPageScaleToItem::GetPresentation( switch( ePres ) { - case SFX_ITEM_PRESENTATION_NONE: - return false; - break; - case SFX_ITEM_PRESENTATION_NAMELESS: rText = aValue; return true; |