svx/source/svdraw/svdotextpathdecomposition.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 070396471b5bb2ce834d141decea88869eb1c6a7
Author: Stephan Bergmann <sberg...@redhat.com>
Date:   Tue Dec 5 11:05:48 2017 +0100

    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 <c...@libreoffice.org>
    Reviewed-by: Stephan Bergmann <sberg...@redhat.com>

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; });
                                 }
                             }
 
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to