summaryrefslogtreecommitdiff
path: root/sw/source/uibase/app
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-07-21 15:53:14 +0200
committerNoel Grandin <noel@peralex.com>2014-07-23 13:26:17 +0200
commit262bde9b3eddf8937d3ce57939dddb1c20b1daaa (patch)
tree00f6876fb51bd8ca0e7e66cb4d3b765f4e30a5d6 /sw/source/uibase/app
parentf2940a4bfffec5bc34fb03cb32205bff4708a027 (diff)
simplify SfxItemPool::GetPresentation
drop the ePresentation parameter, since all 4 of the callsites use SFX_ITEM_PRESENTATION_COMPLETE as the parameter value, and just inline the value into the method. Change-Id: I42c8eae82837c9f9d4edc886d7c760f57b129125
Diffstat (limited to 'sw/source/uibase/app')
-rw-r--r--sw/source/uibase/app/docstyle.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/sw/source/uibase/app/docstyle.cxx b/sw/source/uibase/app/docstyle.cxx
index d74956eac813..7accf667fefa 100644
--- a/sw/source/uibase/app/docstyle.cxx
+++ b/sw/source/uibase/app/docstyle.cxx
@@ -763,8 +763,7 @@ OUString SwDocStyleSheet::GetDescription(SfxMapUnit eUnit)
OUString aItemPresentation;
if ( !IsInvalidItem( pItem ) &&
pPool->GetPool().GetPresentation(
- *pItem, SFX_ITEM_PRESENTATION_COMPLETE,
- eUnit, aItemPresentation, &aIntlWrapper ) )
+ *pItem, eUnit, aItemPresentation, &aIntlWrapper ) )
{
if ( !aDesc.isEmpty() && !aItemPresentation.isEmpty() )
aDesc += sPlus;
@@ -817,8 +816,7 @@ OUString SwDocStyleSheet::GetDescription(SfxMapUnit eUnit)
OUString aItemPresentation;
if ( !IsInvalidItem( pItem ) &&
pPool->GetPool().GetPresentation(
- *pItem, SFX_ITEM_PRESENTATION_COMPLETE,
- eUnit, aItemPresentation, &aIntlWrapper ) )
+ *pItem, eUnit, aItemPresentation, &aIntlWrapper ) )
{
bool bIsDefault = false;
switch ( pItem->Which() )