diff options
author | Noel Grandin <noel@peralex.com> | 2015-04-17 16:55:41 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-04-17 17:05:46 +0200 |
commit | cb516fafbb2a6217d9c41030217cb024ff18272e (patch) | |
tree | aba24db02557760d36d748a5352b13efd85655ae /svx/source/gallery2/GalleryControl.cxx | |
parent | 5df70781f3001d2f5be0343fc9daf04ab5c56719 (diff) |
svx: convert new to ::Create.
Change-Id: Idbcc64e883b79081c7a6399e1aed8a6b20035f69
Diffstat (limited to 'svx/source/gallery2/GalleryControl.cxx')
-rw-r--r-- | svx/source/gallery2/GalleryControl.cxx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/svx/source/gallery2/GalleryControl.cxx b/svx/source/gallery2/GalleryControl.cxx index 6aad3312fd81..87e95aeb35f4 100644 --- a/svx/source/gallery2/GalleryControl.cxx +++ b/svx/source/gallery2/GalleryControl.cxx @@ -40,16 +40,18 @@ GalleryControl::GalleryControl ( vcl::Window* pParentWindow) : Window(pParentWindow, WB_SIZEABLE|WB_MOVEABLE|WB_CLOSEABLE|WB_HIDE), mpGallery (Gallery::GetGalleryInstance()), - mpSplitter(new GallerySplitter( + mpSplitter(VclPtr<GallerySplitter>::Create( + this, WB_HSCROLL, ::boost::bind(&GalleryControl::InitSettings, this))), - mpBrowser1(new GalleryBrowser1( + mpBrowser1(VclPtr<GalleryBrowser1>::Create( + this, mpGallery, ::boost::bind(&GalleryControl::GalleryKeyInput,this,_1,_2), ::boost::bind(&GalleryControl::ThemeSelectionHasChanged, this))), - mpBrowser2(new GalleryBrowser2(this, mpGallery)), + mpBrowser2(VclPtr<GalleryBrowser2>::Create(this, mpGallery)), maLastSize(GetOutputSizePixel()), mbIsInitialResize(true) { |