diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-04-07 09:08:35 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-04-07 12:16:13 +0000 |
commit | be8b9b4d29abb951aea0ea195541143d256954dc (patch) | |
tree | f35cddad2b45e189b23d881cb7c194845eb5c933 /editeng | |
parent | 7d98edfa4955ab6280655a9678d6a913845fa2f3 (diff) |
loplugin:redundantcast find cstyle arithmetic casts
Change-Id: If7c259f0d12a41182f476ddb558f7cb5f76f9577
Reviewed-on: https://gerrit.libreoffice.org/36253
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/editeng/eertfpar.cxx | 2 | ||||
-rw-r--r-- | editeng/source/items/itemtype.cxx | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/editeng/source/editeng/eertfpar.cxx b/editeng/source/editeng/eertfpar.cxx index e6c185273fe2..95e41042008a 100644 --- a/editeng/source/editeng/eertfpar.cxx +++ b/editeng/source/editeng/eertfpar.cxx @@ -512,7 +512,7 @@ void EditRTFParser::CalcValue() const MapUnit eDestUnit = aEditMapMode.GetMapUnit(); const MapUnit eSrcUnit = aRTFMapMode.GetMapUnit(); if (eDestUnit != eSrcUnit) - nTokenValue = OutputDevice::LogicToLogic( (long)nTokenValue, eSrcUnit, eDestUnit ); + nTokenValue = OutputDevice::LogicToLogic( nTokenValue, eSrcUnit, eDestUnit ); } void EditRTFParser::ReadField() diff --git a/editeng/source/items/itemtype.cxx b/editeng/source/items/itemtype.cxx index 5673c59cd76f..620cdadd8b7e 100644 --- a/editeng/source/items/itemtype.cxx +++ b/editeng/source/items/itemtype.cxx @@ -44,7 +44,7 @@ OUString GetMetricText( long nVal, MapUnit eSrcUnit, MapUnit eDestUnit, const In case MapUnit::MapMM: case MapUnit::MapCM: { - nRet = (long)OutputDevice::LogicToLogic( nVal, eSrcUnit, MapUnit::Map100thMM ); + nRet = OutputDevice::LogicToLogic( nVal, eSrcUnit, MapUnit::Map100thMM ); switch ( eDestUnit ) { @@ -76,7 +76,7 @@ OUString GetMetricText( long nVal, MapUnit eSrcUnit, MapUnit eDestUnit, const In case MapUnit::MapPoint: case MapUnit::MapTwip: case MapUnit::MapPixel: - return OUString::number( (long)OutputDevice::LogicToLogic( + return OUString::number( OutputDevice::LogicToLogic( nVal, eSrcUnit, eDestUnit )); default: |