diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-12-05 11:05:48 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-12-05 16:18:52 +0100 |
commit | 070396471b5bb2ce834d141decea88869eb1c6a7 (patch) | |
tree | 464e5c9c3c5197f2242105107d8b50b80d1fa71a | |
parent | d14e0d46e6b42d27f67e9d9227fe01d3ab2f2dcb (diff) |
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 <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
-rw-r--r-- | svx/source/svdraw/svdotextpathdecomposition.cxx | 4 |
1 files 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<double>(), 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<double>(), fAutosizeScaleFactor)); + aNewDXArray.begin(), [fAutosizeScaleFactor](double x) { return x * fAutosizeScaleFactor; }); } } |