summaryrefslogtreecommitdiff
path: root/sfx2/source/sidebar/ControllerFactory.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sfx2/source/sidebar/ControllerFactory.cxx')
-rw-r--r--sfx2/source/sidebar/ControllerFactory.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sfx2/source/sidebar/ControllerFactory.cxx b/sfx2/source/sidebar/ControllerFactory.cxx
index 085a8ccfe5f0..45d26eb854a4 100644
--- a/sfx2/source/sidebar/ControllerFactory.cxx
+++ b/sfx2/source/sidebar/ControllerFactory.cxx
@@ -106,7 +106,7 @@ Reference<frame::XToolbarController> ControllerFactory::CreateToolBoxController(
if (rxParentWindow.is())
{
Reference<awt::XWindow> xItemWindow (xController->createItemWindow(rxParentWindow));
- vcl::Window* pItemWindow = VCLUnoHelper::GetWindow(xItemWindow);
+ VclPtr<vcl::Window> pItemWindow = VCLUnoHelper::GetWindow(xItemWindow);
if (pItemWindow != nullptr)
{
WindowType nType = pItemWindow->GetType();