diff options
author | Noel Grandin <noel@peralex.com> | 2015-04-20 13:44:47 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-04-20 13:44:47 +0200 |
commit | 7819d49facfac7e241840ff9ea6932447e92a6f9 (patch) | |
tree | 86288423048bd7bb47cc854c9ad3505636bc1437 /sd/source/ui/presenter | |
parent | 354df32a6da2557ac9edc0937b0032406bc6ba15 (diff) |
sd: convert new to ::Create.
Change-Id: I35c03ea4430eb5a5bd4c7cfaed74f741c09cbf18
Diffstat (limited to 'sd/source/ui/presenter')
-rw-r--r-- | sd/source/ui/presenter/PresenterHelper.cxx | 4 | ||||
-rw-r--r-- | sd/source/ui/presenter/PresenterTextView.cxx | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sd/source/ui/presenter/PresenterHelper.cxx b/sd/source/ui/presenter/PresenterHelper.cxx index fa55eee8f5fa..52e2797ce5fa 100644 --- a/sd/source/ui/presenter/PresenterHelper.cxx +++ b/sd/source/ui/presenter/PresenterHelper.cxx @@ -79,11 +79,11 @@ Reference<awt::XWindow> SAL_CALL PresenterHelper::createWindow ( vcl::Window* pWindow = NULL; if (bCreateSystemChildWindow) { - pWindow = new WorkWindow(pParentWindow, WB_SYSTEMCHILDWINDOW); + pWindow = VclPtr<WorkWindow>::Create(pParentWindow, WB_SYSTEMCHILDWINDOW); } else { - pWindow = new vcl::Window(pParentWindow); + pWindow = VclPtr<vcl::Window>::Create(pParentWindow); } Reference<awt::XWindow> xWindow (pWindow->GetComponentInterface(), UNO_QUERY); diff --git a/sd/source/ui/presenter/PresenterTextView.cxx b/sd/source/ui/presenter/PresenterTextView.cxx index 91c1e2dd5fc0..70854f5761ce 100644 --- a/sd/source/ui/presenter/PresenterTextView.cxx +++ b/sd/source/ui/presenter/PresenterTextView.cxx @@ -242,7 +242,7 @@ PresenterTextView::Implementation::Implementation (void) msTotalHeightPropertyName("TotalHeight"), mxBitmap(), mpCanvas(), - mpOutputDevice(new VirtualDevice(*Application::GetDefaultDevice(), 0, 0)), + mpOutputDevice(VclPtr<VirtualDevice>::Create(*Application::GetDefaultDevice(), 0, 0)), mpEditEngine(NULL), mpEditEngineItemPool(EditEngine::CreatePool()), maSize(100,100), @@ -454,7 +454,7 @@ Reference<rendering::XBitmap> PresenterTextView::Implementation::GetBitmap (void if ( ! mxBitmap.is()) { mpOutputDevice.disposeAndClear(); - mpOutputDevice = new VirtualDevice(*Application::GetDefaultDevice(), 0, 0); + mpOutputDevice = VclPtr<VirtualDevice>::Create(*Application::GetDefaultDevice(), 0, 0); mpOutputDevice->SetMapMode(MAP_PIXEL); mpOutputDevice->SetOutputSizePixel(maSize, true); mpOutputDevice->SetLineColor(); |