summaryrefslogtreecommitdiff
path: root/svl/source
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 /svl/source
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 'svl/source')
-rw-r--r--svl/source/items/itempool.cxx3
-rw-r--r--svl/source/items/style.cxx3
2 files changed, 2 insertions, 4 deletions
diff --git a/svl/source/items/itempool.cxx b/svl/source/items/itempool.cxx
index 96c318b1782d..55084997e4a5 100644
--- a/svl/source/items/itempool.cxx
+++ b/svl/source/items/itempool.cxx
@@ -507,14 +507,13 @@ const OUString& SfxItemPool::GetName() const
SfxItemPresentation SfxItemPool::GetPresentation
(
const SfxPoolItem& rItem,
- SfxItemPresentation ePresent,
SfxMapUnit eMetric,
OUString& rText,
const IntlWrapper * pIntlWrapper
) const
{
return rItem.GetPresentation(
- ePresent, GetMetric(rItem.Which()), eMetric, rText, pIntlWrapper );
+ SFX_ITEM_PRESENTATION_COMPLETE, GetMetric(rItem.Which()), eMetric, rText, pIntlWrapper );
}
diff --git a/svl/source/items/style.cxx b/svl/source/items/style.cxx
index 369bebe701eb..9d212345711e 100644
--- a/svl/source/items/style.cxx
+++ b/svl/source/items/style.cxx
@@ -343,8 +343,7 @@ OUString SfxStyleSheetBase::GetDescription( SfxMapUnit eMetric )
if ( !IsInvalidItem( pItem ) &&
pPool->GetPool().GetPresentation(
- *pItem, SFX_ITEM_PRESENTATION_COMPLETE,
- eMetric, aItemPresentation, &aIntlWrapper ) )
+ *pItem, eMetric, aItemPresentation, &aIntlWrapper ) )
{
if ( !aDesc.isEmpty() && !aItemPresentation.isEmpty() )
aDesc += " + ";