summaryrefslogtreecommitdiff
path: root/svx/source/form
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2004-04-15 10:26:50 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2004-04-15 10:26:50 +0000
commitc6621cfe145aaa6573f7c5e5856669c44848812b (patch)
treef42bb9e4f6e844592daad1a54d48aa6f246be94f /svx/source/form
parent69ebcebd39b24e9373204bd613f938b63df401e9 (diff)
#i10000# (done by fs) bracket temporary references to myself in dedicated scope /before/ setting the delegator
Diffstat (limited to 'svx/source/form')
-rw-r--r--svx/source/form/fmctrler.cxx21
1 files changed, 11 insertions, 10 deletions
diff --git a/svx/source/form/fmctrler.cxx b/svx/source/form/fmctrler.cxx
index 6eb878fca3f8..5b2d7fb2b2df 100644
--- a/svx/source/form/fmctrler.cxx
+++ b/svx/source/form/fmctrler.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: fmctrler.cxx,v $
*
- * $Revision: 1.40 $
+ * $Revision: 1.41 $
*
- * last change: $Author: hr $ $Date: 2004-04-13 11:05:48 $
+ * last change: $Author: hr $ $Date: 2004-04-15 11:26:50 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -433,17 +433,18 @@ FmXFormController::FmXFormController(const Reference< XMultiServiceFactory > & _
::comphelper::increment(m_refCount);
{
- m_xAggregate = Reference< XAggregation >(
- m_xORB->createInstance( ::rtl::OUString::createFromAscii( "com.sun.star.awt.TabController" ) ),
- UNO_QUERY
- );
- DBG_ASSERT( m_xAggregate.is(), "FmXFormController::FmXFormController : could not create my aggregate !" );
- m_xTabController = Reference< XTabController >( m_xAggregate, UNO_QUERY );
+ {
+ m_xAggregate = Reference< XAggregation >(
+ m_xORB->createInstance( ::rtl::OUString::createFromAscii( "com.sun.star.awt.TabController" ) ),
+ UNO_QUERY
+ );
+ DBG_ASSERT( m_xAggregate.is(), "FmXFormController::FmXFormController : could not create my aggregate !" );
+ m_xTabController = Reference< XTabController >( m_xAggregate, UNO_QUERY );
+ }
- if ( m_xAggregate.is() )
+ if ( m_xAggregate.is() )
m_xAggregate->setDelegator( *this );
}
-
::comphelper::decrement(m_refCount);
m_aTabActivationTimer.SetTimeout( 500 );