diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-11-19 10:27:03 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-11-19 10:27:03 +0100 |
commit | 6635508ad59515311245245472f7a38eabab28cd (patch) | |
tree | e8da16ab91756e5dab4da135b1c63c941513331f /sc | |
parent | b943150fe84a0158546b6a00ee330ea503c02359 (diff) |
-Werror,-Wabsolute-value
("using integer absolute value function 'abs' when argument is of floating point
type")
Change-Id: I8c091049b44dd44ec44124055c160a024ec658a5
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/optdlg/calcoptionsdlg.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sc/source/ui/optdlg/calcoptionsdlg.cxx b/sc/source/ui/optdlg/calcoptionsdlg.cxx index 750d859af3f6..3a4764e53d8c 100644 --- a/sc/source/ui/optdlg/calcoptionsdlg.cxx +++ b/sc/source/ui/optdlg/calcoptionsdlg.cxx @@ -7,6 +7,10 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +#include <sal/config.h> + +#include <cmath> + #include "calcconfig.hxx" #include "calcoptionsdlg.hxx" #include "docsh.hxx" @@ -1049,7 +1053,7 @@ IMPL_LINK( ScCalcOptionsDialog, TestClickHdl, PushButton*, ) // Handle TAN undefinedness. Use a relative epsilon for larger TAN values if (i <= 16 && i % 4 == 2) pDoc->SetValue(ScAddress(23,i,2), 0); - else if (abs(tan(d)) < 10) + else if (std::abs(tan(d)) < 10) pDoc->SetString(ScAddress(23,i,2), OUString("=IF(ABS(D") + is + "-N" + is + ")<" + sEpsilon + ",0,1)"); else |