diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2014-10-02 04:46:55 -0500 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2014-10-04 09:36:28 -0500 |
commit | 64d164875fca205294e2ba6f3ce46d392dcfc5cf (patch) | |
tree | 91e9e6b40dfe2f843f7544d6fe08bcedb2c2d88a /xmloff | |
parent | 164bd64255d71d96e35e908f6425acf8372795fb (diff) |
coverity#1242759 Result is not floating-point
Change-Id: I3a358722279d574f96a2270b5dee84b85ddb402f
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/core/ProgressBarHelper.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmloff/source/core/ProgressBarHelper.cxx b/xmloff/source/core/ProgressBarHelper.cxx index a530970c1188..fcf2df5dd5a4 100644 --- a/xmloff/source/core/ProgressBarHelper.cxx +++ b/xmloff/source/core/ProgressBarHelper.cxx @@ -48,7 +48,7 @@ sal_Int32 ProgressBarHelper::ChangeReference(sal_Int32 nNewReference) { if (nReference) { - double fPercent(nNewReference / nReference); + double fPercent((double)nNewReference / nReference); double fValue(nValue * fPercent); nValue = static_cast<sal_Int32>(fValue); nReference = nNewReference; |