[Libreoffice-commits] core.git: sc/source
Stephan Bergmann
sbergman at redhat.com
Wed Nov 19 01:27:59 PST 2014
sc/source/ui/optdlg/calcoptionsdlg.cxx | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
New commits:
commit 6635508ad59515311245245472f7a38eabab28cd
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Wed Nov 19 10:27:03 2014 +0100
-Werror,-Wabsolute-value
("using integer absolute value function 'abs' when argument is of floating point
type")
Change-Id: I8c091049b44dd44ec44124055c160a024ec658a5
diff --git a/sc/source/ui/optdlg/calcoptionsdlg.cxx b/sc/source/ui/optdlg/calcoptionsdlg.cxx
index 750d859..3a4764e 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
More information about the Libreoffice-commits
mailing list