diff options
Diffstat (limited to 'svtools/source/hatchwindow/hatchwindow.cxx')
-rw-r--r-- | svtools/source/hatchwindow/hatchwindow.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/svtools/source/hatchwindow/hatchwindow.cxx b/svtools/source/hatchwindow/hatchwindow.cxx index dc1828d08642..3ca665552db0 100644 --- a/svtools/source/hatchwindow/hatchwindow.cxx +++ b/svtools/source/hatchwindow/hatchwindow.cxx @@ -55,7 +55,7 @@ void VCLXHatchWindow::initializeWindow( const uno::Reference< awt::XWindowPeer > if ( !pParent ) throw lang::IllegalArgumentException(); // TODO - pHatchWindow = new SvResizeWindow( pParent, this ); + pHatchWindow = VclPtr<SvResizeWindow>::Create( pParent, this ); pHatchWindow->setPosSizePixel( aBounds.X, aBounds.Y, aBounds.Width, aBounds.Height ); aHatchBorderSize = aSize; pHatchWindow->SetHatchBorderPixel( Size( aSize.Width, aSize.Height ) ); @@ -188,7 +188,7 @@ void SAL_CALL VCLXHatchWindow::setController( const uno::Reference< embed::XHatc void SAL_CALL VCLXHatchWindow::dispose() throw (uno::RuntimeException, std::exception) { - pHatchWindow = 0; + pHatchWindow.clear(); VCLXWindow::dispose(); } |