diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2018-06-28 17:44:42 +0900 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2018-07-02 03:28:45 +0200 |
commit | d6aa070267f95fbcc6024ca42b8473ef08df81c7 (patch) | |
tree | eab6eab344430ba50267e1cb0b7717ad0800ceb0 | |
parent | b30b4e9c7c492542e1ae726e2e45627ee33f7cd5 (diff) |
sc: Replace DblMin() with std::min()
Change-Id: Ic9ca0e9c1a63519026152f9aa1a038f183de1e4d
Reviewed-on: https://gerrit.libreoffice.org/56581
Tested-by: Jenkins
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
-rw-r--r-- | sc/source/core/tool/interpr2.cxx | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/sc/source/core/tool/interpr2.cxx b/sc/source/core/tool/interpr2.cxx index 7846d0d162b6..682867b8ef18 100644 --- a/sc/source/core/tool/interpr2.cxx +++ b/sc/source/core/tool/interpr2.cxx @@ -1781,11 +1781,6 @@ double ScInterpreter::ScInterVDB(double fCost, double fSalvage, double fLife, return fVdb; } -inline double DblMin( double a, double b ) -{ - return (a < b) ? a : b; -} - void ScInterpreter::ScVDB() { nFuncFmtType = SvNumFormatType::CURRENCY; @@ -1826,7 +1821,7 @@ void ScInterpreter::ScVDB() //respect partial period in the Beginning/ End: if ( i == nLoopStart+1 ) - fTerm *= ( DblMin( fEnd, fIntStart + 1.0 ) - fStart ); + fTerm *= ( std::min( fEnd, fIntStart + 1.0 ) - fStart ); else if ( i == nLoopEnd ) fTerm *= ( fEnd + 1.0 - fIntEnd ); |