summaryrefslogtreecommitdiff
path: root/svtools/source/hatchwindow/hatchwindowfactory.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svtools/source/hatchwindow/hatchwindowfactory.cxx')
-rw-r--r--svtools/source/hatchwindow/hatchwindowfactory.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/svtools/source/hatchwindow/hatchwindowfactory.cxx b/svtools/source/hatchwindow/hatchwindowfactory.cxx
index 520cc1a25a01..36fe6c9c1104 100644
--- a/svtools/source/hatchwindow/hatchwindowfactory.cxx
+++ b/svtools/source/hatchwindow/hatchwindowfactory.cxx
@@ -56,9 +56,9 @@ uno::Reference< embed::XHatchWindow > SAL_CALL OHatchWindowFactory::createHatchW
throw lang::IllegalArgumentException(); // TODO
SolarMutexGuard aGuard;
- VCLXHatchWindow* pResult = new VCLXHatchWindow();
+ rtl::Reference<VCLXHatchWindow> pResult = new VCLXHatchWindow();
pResult->initializeWindow( xParent, aBounds, aHandlerSize );
- return uno::Reference< embed::XHatchWindow >( static_cast< embed::XHatchWindow* >( pResult ) );
+ return pResult;
}
OUString SAL_CALL OHatchWindowFactory::getImplementationName()