summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-11-04 12:30:38 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-11-04 12:30:38 +0100
commitec60a59a710e1dd0f976770301df71653351d654 (patch)
treebf759ffd37c11825956b259f20c902017c17e73f
parentf0cef70cd4164342b218fbee34bf57eedc22c998 (diff)
-Werror,-Wabsolute-value
("using integer absolute value function 'abs' when argument is of floating point type; use function 'std::abs' instead") Change-Id: I3634186a10607f3b3fc6fc7c0aef968b32892156
-rw-r--r--vcl/source/filter/sgvspln.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/filter/sgvspln.cxx b/vcl/source/filter/sgvspln.cxx
index 2a32875ea271..dedd999bab18 100644
--- a/vcl/source/filter/sgvspln.cxx
+++ b/vcl/source/filter/sgvspln.cxx
@@ -570,14 +570,14 @@ sal_uInt16 ParaSpline(sal_uInt16 n, double* x, double* y, sal_uInt8 MargCond,
if (y[n]!=y[0]) return 4;
} break;
case 4: {
- if (abs(Marg01)>=MAXROOT) {
+ if (std::abs(Marg01)>=MAXROOT) {
alphX=0.0;
alphY=std::copysign(1.0,y[1]-y[0]);
} else {
alphX=std::copysign(sqrt(1.0/(1.0+Marg01*Marg01)),x[1]-x[0]);
alphY=alphX*Marg01;
}
- if (abs(MargN1)>=MAXROOT) {
+ if (std::abs(MargN1)>=MAXROOT) {
betX=0.0;
betY=std::copysign(1.0,y[n]-y[n-1]);
} else {