summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-11-19 10:27:03 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-11-19 10:27:03 +0100
commit6635508ad59515311245245472f7a38eabab28cd (patch)
treee8da16ab91756e5dab4da135b1c63c941513331f /sc
parentb943150fe84a0158546b6a00ee330ea503c02359 (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.cxx6
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