diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-10-19 17:50:56 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-10-19 17:50:56 +0200 |
commit | 4b603aaa4adde6789099f2fd7e95c11df4116c0c (patch) | |
tree | 74a7b7610cc864036b22d026c253013237da3d81 /scaddins | |
parent | bbc6414be17799b90ef84b1cecab76ee10dede9b (diff) |
loplugin:defaultparams
Change-Id: I511b95a62f43f9f726fbe5253c7ffc6b510b0346
Diffstat (limited to 'scaddins')
-rw-r--r-- | scaddins/source/analysis/analysishelper.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scaddins/source/analysis/analysishelper.cxx b/scaddins/source/analysis/analysishelper.cxx index 8ffe4a20246d..7f2bb8101851 100644 --- a/scaddins/source/analysis/analysishelper.cxx +++ b/scaddins/source/analysis/analysishelper.cxx @@ -1002,13 +1002,13 @@ double GetAmordegrc( sal_Int32 nNullDate, double fCost, sal_Int32 nDate, sal_Int fAmorCoeff = 2.5; fRate *= fAmorCoeff; - double fNRate = ::rtl::math::round( GetYearFrac( nNullDate, nDate, nFirstPer, nBase ) * fRate * fCost, 0 ); + double fNRate = ::rtl::math::round( GetYearFrac( nNullDate, nDate, nFirstPer, nBase ) * fRate * fCost ); fCost -= fNRate; double fRest = fCost - fRestVal; // aboriginal cost - residual value - sum of all write-downs for( sal_uInt32 n = 0 ; n < nPer ; n++ ) { - fNRate = ::rtl::math::round( fRate * fCost, 0 ); + fNRate = ::rtl::math::round( fRate * fCost ); fRest -= fNRate; if( fRest < 0.0 ) @@ -1017,7 +1017,7 @@ double GetAmordegrc( sal_Int32 nNullDate, double fCost, sal_Int32 nDate, sal_Int { case 0: case 1: - return ::rtl::math::round( fCost * 0.5, 0 ); + return ::rtl::math::round( fCost * 0.5 ); default: return 0.0; } |