summaryrefslogtreecommitdiff
path: root/vcl/source/window/dialog.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/window/dialog.cxx')
-rw-r--r--vcl/source/window/dialog.cxx12
1 files changed, 1 insertions, 11 deletions
diff --git a/vcl/source/window/dialog.cxx b/vcl/source/window/dialog.cxx
index 066ac9739ac7..e8d8d477b1ff 100644
--- a/vcl/source/window/dialog.cxx
+++ b/vcl/source/window/dialog.cxx
@@ -865,10 +865,6 @@ short Dialog::Execute()
VclPtr<vcl::Window> xWindow = this;
-#ifdef DBG_UTIL
- VclPtr<vcl::Window> xDialogParent = mpDialogParent;
-#endif
-
// Yield util EndDialog is called or dialog gets destroyed
// (the latter should not happen, but better safe than sorry
while ( !xWindow->IsDisposed() && mbInExecute )
@@ -877,13 +873,7 @@ short Dialog::Execute()
ImplEndExecuteModal();
#ifdef DBG_UTIL
- if( xDialogParent )
- {
- if( ! xDialogParent->IsDisposed() )
- xDialogParent.clear();
- else
- OSL_FAIL( "Dialog::Execute() - Parent of dialog destroyed in Execute()" );
- }
+ assert (!mpDialogParent || !mpDialogParent->IsDisposed());
#endif
if ( !xWindow->IsDisposed() )
xWindow.clear();