summaryrefslogtreecommitdiff
path: root/basic/source/runtime/runtime.cxx
diff options
context:
space:
mode:
authorAndreas Bregas <ab@openoffice.org>2002-01-18 10:51:29 +0000
committerAndreas Bregas <ab@openoffice.org>2002-01-18 10:51:29 +0000
commita6524527f10ecdd25086a980ae2f51b0eaab1816 (patch)
tree02ae3d5b9eedb7bc73852134431109093eaa8550 /basic/source/runtime/runtime.cxx
parent5740b5fe22ef2337db94ba78b63122264286b3fc (diff)
#96008# Dispose DialogControlModel
Diffstat (limited to 'basic/source/runtime/runtime.cxx')
-rw-r--r--basic/source/runtime/runtime.cxx29
1 files changed, 5 insertions, 24 deletions
diff --git a/basic/source/runtime/runtime.cxx b/basic/source/runtime/runtime.cxx
index 7b691ebd324a..f5f2be16ef64 100644
--- a/basic/source/runtime/runtime.cxx
+++ b/basic/source/runtime/runtime.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: runtime.cxx,v $
*
- * $Revision: 1.10 $
+ * $Revision: 1.11 $
*
- * last change: $Author: fs $ $Date: 2002-01-08 14:19:57 $
+ * last change: $Author: ab $ $Date: 2002-01-18 11:51:29 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -83,9 +83,6 @@
#ifndef _COMPHELPER_PROCESSFACTORY_HXX_
#include <comphelper/processfactory.hxx>
#endif
-#ifndef _COM_SUN_STAR_AWT_XCONTROL_HPP_
-#include <com/sun/star/awt/XControl.hpp>
-#endif
// Makro MEMBER()
#include <macfix.hxx>
@@ -320,25 +317,9 @@ SbiInstance::~SbiInstance()
ComponentVector_t::const_iterator iPos( ComponentVector.begin() );
while( iPos != ComponentVector.end() )
{
- if ( iPos->is() )
- {
- Reference< XComponent > xDisposeMe;
-
- ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControl > xDialogComponent( *iPos, ::com::sun::star::uno::UNO_QUERY );
- if ( xDialogComponent.is() )
- xDisposeMe = xDisposeMe.query( xDialogComponent->getModel() );
-
- if ( !xDisposeMe.is() )
- {
- DBG_ERROR( "SbiInstance::~SbiInstance: not a valid control component!" );
- // at the moment, there are only XControl's stored in the component vector.
- // If this changes some time in the future, this assertion has to be removed
- xDisposeMe = *iPos;
- }
-
- xDisposeMe->dispose();
- }
-
+ Reference< XComponent > xDlgComponent = *iPos ;
+ if( xDlgComponent.is() )
+ xDlgComponent->dispose();
++iPos;
}
}