summaryrefslogtreecommitdiff
path: root/svtools/source/uno/wizard/wizardpagecontroller.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svtools/source/uno/wizard/wizardpagecontroller.cxx')
-rw-r--r--svtools/source/uno/wizard/wizardpagecontroller.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/svtools/source/uno/wizard/wizardpagecontroller.cxx b/svtools/source/uno/wizard/wizardpagecontroller.cxx
index 5958226fb9b2..4268799640c6 100644
--- a/svtools/source/uno/wizard/wizardpagecontroller.cxx
+++ b/svtools/source/uno/wizard/wizardpagecontroller.cxx
@@ -93,8 +93,8 @@ namespace svt { namespace uno
try
{
Reference< XWindow > xPageWindow( m_xWizardPage->getWindow(), UNO_SET_THROW );
- vcl::Window* pPageWindow = VCLUnoHelper::GetWindow( xPageWindow );
- if ( pPageWindow == nullptr )
+ VclPtr<vcl::Window> pPageWindow = VCLUnoHelper::GetWindow( xPageWindow );
+ if ( pPageWindow )
{
// windows created via the XContainerWindowProvider might be controls, not real windows, so resolve
// that one indirection
@@ -103,8 +103,8 @@ namespace svt { namespace uno
pPageWindow = VCLUnoHelper::GetWindow( xPageWindow );
}
- OSL_ENSURE( pPageWindow != nullptr, "WizardPageController::getTabPage: unable to find the Window implementation for the page's window!" );
- return dynamic_cast< TabPage* >( pPageWindow );
+ OSL_ENSURE( pPageWindow, "WizardPageController::getTabPage: unable to find the Window implementation for the page's window!" );
+ return dynamic_cast< TabPage* >( pPageWindow.get() );
}
catch( const Exception& )
{