diff options
author | Michael Stahl <mstahl@redhat.com> | 2016-05-11 22:44:08 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2016-05-12 11:08:24 +0200 |
commit | 28159e91ba936e9da13bb4e194b34605065e4362 (patch) | |
tree | ce904353f1ae3bce47804ef2f23c8a6b1c05262c /sdext/source/presenter/PresenterTextView.cxx | |
parent | 0b8a989aceed4f719924410907ab69d2a0cab989 (diff) |
sdext: replace boost::bind with C++11 lambdas, part 2
Change-Id: Ife5fbf7a7a41182de00dca339cba160e3bb0062f
Diffstat (limited to 'sdext/source/presenter/PresenterTextView.cxx')
-rw-r--r-- | sdext/source/presenter/PresenterTextView.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sdext/source/presenter/PresenterTextView.cxx b/sdext/source/presenter/PresenterTextView.cxx index 11661a07c92a..07a1294cde1d 100644 --- a/sdext/source/presenter/PresenterTextView.cxx +++ b/sdext/source/presenter/PresenterTextView.cxx @@ -36,7 +36,6 @@ #include <com/sun/star/rendering/CompositeOperation.hpp> #include <com/sun/star/rendering/TextDirection.hpp> #include <com/sun/star/text/WritingMode2.hpp> -#include <boost/bind.hpp> using namespace ::com::sun::star; using namespace ::com::sun::star::accessibility; @@ -75,7 +74,8 @@ PresenterTextView::PresenterTextView ( mpFont(), maParagraphs(), mpCaret(new PresenterTextCaret( - ::boost::bind(&PresenterTextView::GetCaretBounds, this, _1, _2), + [this] (sal_Int32 const nParagraphIndex, sal_Int32 const nCharacterIndex) + { return this->GetCaretBounds(nParagraphIndex, nCharacterIndex); }, rInvalidator)), mnLeftOffset(0), mnTopOffset(0), @@ -1105,7 +1105,7 @@ void PresenterTextCaret::ShowCaret() if (mnCaretBlinkTaskId == 0) { mnCaretBlinkTaskId = PresenterTimer::ScheduleRepeatedTask ( - ::boost::bind(&PresenterTextCaret::InvertCaret, this), + [this] (TimeValue const&) { return this->InvertCaret(); }, CaretBlinkIntervall, CaretBlinkIntervall); } |