summaryrefslogtreecommitdiff
path: root/svtools/source/uno/popupwindowcontroller.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svtools/source/uno/popupwindowcontroller.cxx')
-rw-r--r--svtools/source/uno/popupwindowcontroller.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/svtools/source/uno/popupwindowcontroller.cxx b/svtools/source/uno/popupwindowcontroller.cxx
index f8d6f4775bd6..bffb118e9e22 100644
--- a/svtools/source/uno/popupwindowcontroller.cxx
+++ b/svtools/source/uno/popupwindowcontroller.cxx
@@ -187,7 +187,7 @@ Reference< awt::XWindow > SAL_CALL PopupWindowController::createPopupWindow() th
if( pToolBox )
{
vcl::Window* pItemWindow = pToolBox->GetItemWindow( pToolBox->GetDownItemId() );
- vcl::Window* pWin = createPopupWindow( pItemWindow ? pItemWindow : pToolBox );
+ VclPtr<vcl::Window> pWin = createPopupWindow( pItemWindow ? pItemWindow : pToolBox );
if( pWin )
{
FloatWinPopupFlags eFloatFlags = FloatWinPopupFlags::GrabFocus |
@@ -196,7 +196,7 @@ Reference< awt::XWindow > SAL_CALL PopupWindowController::createPopupWindow() th
WinBits nWinBits;
if ( pWin->GetType() == WINDOW_DOCKINGWINDOW )
- nWinBits = static_cast< DockingWindow* >( pWin )->GetFloatStyle();
+ nWinBits = static_cast< DockingWindow* >( pWin.get() )->GetFloatStyle();
else
nWinBits = pWin->GetStyle();