diff options
Diffstat (limited to 'sd/source/ui/presenter/PresenterHelper.cxx')
-rw-r--r-- | sd/source/ui/presenter/PresenterHelper.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sd/source/ui/presenter/PresenterHelper.cxx b/sd/source/ui/presenter/PresenterHelper.cxx index 79d9ef48cad2..60b7bcb701de 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); |