diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-06-02 09:36:33 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-06-02 09:36:33 +0200 |
commit | da76bb4f2ad68e36aaad1b6e451b53388141c845 (patch) | |
tree | 005afbf0dbbaaa380874ce55d6c78234c72f69e1 /svx/source/svdraw/svdmodel.cxx | |
parent | f51dc77f30b0b38122b498f02d19045b6b224921 (diff) |
Improved loplugin:redundantcast static_cast handling: svx
Change-Id: I299d53fcef4276626944cfbaefbf1bbd4ce5d5ab
Diffstat (limited to 'svx/source/svdraw/svdmodel.cxx')
-rw-r--r-- | svx/source/svdraw/svdmodel.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/svx/source/svdraw/svdmodel.cxx b/svx/source/svdraw/svdmodel.cxx index cbf4db08f645..e970442823d1 100644 --- a/svx/source/svdraw/svdmodel.cxx +++ b/svx/source/svdraw/svdmodel.cxx @@ -1208,7 +1208,7 @@ void SdrModel::TakeMetricStr(long nVal, OUString& rStr, bool bNoUnitChars, sal_I if(nDecimalMark > nNumDigits) { const sal_Int32 nDiff(nDecimalMark - nNumDigits); - const double fFactor(pow(10.0, static_cast<const int>(nDiff))); + const double fFactor(pow(10.0, static_cast<int>(nDiff))); fLocalValue /= fFactor; nDecimalMark = nNumDigits; @@ -1216,7 +1216,7 @@ void SdrModel::TakeMetricStr(long nVal, OUString& rStr, bool bNoUnitChars, sal_I else if(nDecimalMark < nNumDigits) { const sal_Int32 nDiff(nNumDigits - nDecimalMark); - const double fFactor(pow(10.0, static_cast<const int>(nDiff))); + const double fFactor(pow(10.0, static_cast<int>(nDiff))); fLocalValue *= fFactor; nDecimalMark = nNumDigits; |