diff options
author | Michael Stahl <mstahl@redhat.com> | 2016-02-04 13:01:15 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2016-02-04 14:25:38 +0000 |
commit | 0835f5b80cecee7ec4326e4ab295f520112052fb (patch) | |
tree | d56f1e54c3edbccdc45e5f42b7eb09a467d503af /svx/source/gallery2 | |
parent | f600e14561edf3ab35762a39a199ac6d03ab2706 (diff) |
svx: replace boost::bind with C++11 lambda
Change-Id: I68f9559fab9a344979dc39b81f3738877483b5fe
Reviewed-on: https://gerrit.libreoffice.org/22106
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'svx/source/gallery2')
-rw-r--r-- | svx/source/gallery2/GalleryControl.cxx | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/svx/source/gallery2/GalleryControl.cxx b/svx/source/gallery2/GalleryControl.cxx index 65a8629f1616..f6c113694f51 100644 --- a/svx/source/gallery2/GalleryControl.cxx +++ b/svx/source/gallery2/GalleryControl.cxx @@ -29,8 +29,6 @@ #include <vcl/settings.hxx> #include <sfx2/sidebar/Theme.hxx> -#include <boost/bind.hpp> - namespace svx { namespace sidebar { static const sal_Int32 gnInitialVerticalSplitPosition (150); @@ -44,13 +42,14 @@ GalleryControl::GalleryControl ( this, WB_HSCROLL, - ::boost::bind(&GalleryControl::InitSettings, this))), + [this] () { return this->InitSettings(); })), mpBrowser1(VclPtr<GalleryBrowser1>::Create( this, mpGallery, - ::boost::bind(&GalleryControl::GalleryKeyInput,this,_1,_2), - ::boost::bind(&GalleryControl::ThemeSelectionHasChanged, this))), + [this] (KeyEvent const& rEvent, vcl::Window *const pWindow) + { return this->GalleryKeyInput(rEvent, pWindow); }, + [this] () { return this->ThemeSelectionHasChanged(); })), mpBrowser2(VclPtr<GalleryBrowser2>::Create(this, mpGallery)), maLastSize(GetOutputSizePixel()), mbIsInitialResize(true) |