summaryrefslogtreecommitdiff
path: root/svx/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 /svx/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 'svx/source')
-rw-r--r--svx/source/dialog/srchdlg.cxx1
-rw-r--r--svx/source/svdraw/svdattr.cxx6
2 files changed, 3 insertions, 4 deletions
diff --git a/svx/source/dialog/srchdlg.cxx b/svx/source/dialog/srchdlg.cxx
index c3c39120a278..d59c09067e0d 100644
--- a/svx/source/dialog/srchdlg.cxx
+++ b/svx/source/dialog/srchdlg.cxx
@@ -2058,7 +2058,6 @@ OUString& SvxSearchDialog::BuildAttrText_Impl( OUString& rStr,
{
OUString aStr;
rPool.GetPresentation( *rItem.pItem,
- SFX_ITEM_PRESENTATION_COMPLETE,
eMapUnit, aStr );
rStr += aStr;
}
diff --git a/svx/source/svdraw/svdattr.cxx b/svx/source/svdraw/svdattr.cxx
index 6ba59252e8a8..0ddb21509427 100644
--- a/svx/source/svdraw/svdattr.cxx
+++ b/svx/source/svdraw/svdattr.cxx
@@ -396,7 +396,7 @@ SdrItemPool::~SdrItemPool()
}
SfxItemPresentation SdrItemPool::GetPresentation(
- const SfxPoolItem& rItem, SfxItemPresentation ePresentation,
+ const SfxPoolItem& rItem,
SfxMapUnit ePresentationMetric, OUString& rText,
const IntlWrapper * pIntlWrapper) const
{
@@ -411,10 +411,10 @@ SfxItemPresentation SdrItemPool::GetPresentation(
TakeItemName(nWhich, aStr);
rText = aStr + " " + rText;
- return ePresentation;
+ return SFX_ITEM_PRESENTATION_COMPLETE;
}
}
- return XOutdevItemPool::GetPresentation(rItem,ePresentation,ePresentationMetric,rText,pIntlWrapper);
+ return XOutdevItemPool::GetPresentation(rItem,ePresentationMetric,rText,pIntlWrapper);
}
void SdrItemPool::TakeItemName(sal_uInt16 nWhich, OUString& rItemName)