From 070396471b5bb2ce834d141decea88869eb1c6a7 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 5 Dec 2017 11:05:48 +0100 Subject: Replace deprecated std::bin2nd with lambda in svx (as std::bind2nd is gone by default at least from recent libc++ in C++17 mode) Change-Id: Icd13de21facec38a4f94595d9685e492bffdc6e7 Reviewed-on: https://gerrit.libreoffice.org/45867 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- svx/source/svdraw/svdotextpathdecomposition.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/svx/source/svdraw/svdotextpathdecomposition.cxx b/svx/source/svdraw/svdotextpathdecomposition.cxx index fef622175078..26de0ee7d22c 100644 --- a/svx/source/svdraw/svdotextpathdecomposition.cxx +++ b/svx/source/svdraw/svdotextpathdecomposition.cxx @@ -491,7 +491,7 @@ namespace double fDXOffset= *(pCandidate->getDoubleDXArray().begin() + (nPortionIndex - 1)); ::std::transform( aNewDXArray.begin(), aNewDXArray.end(), - aNewDXArray.begin(), ::std::bind2nd(::std::minus(), fDXOffset)); + aNewDXArray.begin(), [fDXOffset](double x) { return x - fDXOffset; }); } if(bAutosizeScale) @@ -499,7 +499,7 @@ namespace // when autosize scaling, adapt to DXArray, too ::std::transform( aNewDXArray.begin(), aNewDXArray.end(), - aNewDXArray.begin(), ::std::bind2nd(::std::multiplies(), fAutosizeScaleFactor)); + aNewDXArray.begin(), [fAutosizeScaleFactor](double x) { return x * fAutosizeScaleFactor; }); } } -- cgit