summaryrefslogtreecommitdiff
path: root/svx/source/svdraw/svdattr.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-03-20 09:01:33 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-03-22 06:47:35 +0000
commit7299481834b15c920f996f4b0f3b5f821a82a10d (patch)
tree6cbc8a64399046dd2c83e4a4ef778c65ec00a34a /svx/source/svdraw/svdattr.cxx
parente9c7d259e8ed3144d4226aef7c3de351e4706b79 (diff)
loplugin:redundantcast find redundant c-style enum casts
Change-Id: I2dab376d87804521aed6b6bd41ad7762830fa349 Reviewed-on: https://gerrit.libreoffice.org/35467 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source/svdraw/svdattr.cxx')
-rw-r--r--svx/source/svdraw/svdattr.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/svx/source/svdraw/svdattr.cxx b/svx/source/svdraw/svdattr.cxx
index 7320c1c7aa66..ca28596f8666 100644
--- a/svx/source/svdraw/svdattr.cxx
+++ b/svx/source/svdraw/svdattr.cxx
@@ -931,10 +931,10 @@ bool SdrMetricItem::GetPresentation(SfxItemPresentation ePres,
MapUnit eCoreMetric, MapUnit ePresMetric, OUString& rText, const IntlWrapper *) const
{
long nValue=GetValue();
- SdrFormatter aFmt((MapUnit)eCoreMetric,(MapUnit)ePresMetric);
+ SdrFormatter aFmt(eCoreMetric,ePresMetric);
aFmt.TakeStr(nValue,rText);
OUString aStr;
- SdrFormatter::TakeUnitStr((MapUnit)ePresMetric,aStr);
+ SdrFormatter::TakeUnitStr(ePresMetric,aStr);
rText += " " + aStr;
if (ePres==SfxItemPresentation::Complete) {
OUString aStr2;
@@ -1320,11 +1320,11 @@ bool SdrTextAniAmountItem::GetPresentation(
}
else
{
- SdrFormatter aFmt((MapUnit)eCoreMetric, (MapUnit)ePresMetric);
+ SdrFormatter aFmt(eCoreMetric, ePresMetric);
OUString aStr;
aFmt.TakeStr(nValue, rText);
- SdrFormatter::TakeUnitStr((MapUnit)ePresMetric, aStr);
+ SdrFormatter::TakeUnitStr(ePresMetric, aStr);
rText += aStr;
}