diff options
Diffstat (limited to 'forms/source/helper/controlfeatureinterception.cxx')
-rw-r--r-- | forms/source/helper/controlfeatureinterception.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/forms/source/helper/controlfeatureinterception.cxx b/forms/source/helper/controlfeatureinterception.cxx index 1e0d0fbcd03d..e8a4ebb337d3 100644 --- a/forms/source/helper/controlfeatureinterception.cxx +++ b/forms/source/helper/controlfeatureinterception.cxx @@ -29,7 +29,6 @@ namespace frm using namespace ::com::sun::star::uno; using namespace ::com::sun::star::frame; using namespace ::com::sun::star::util; - using namespace ::com::sun::star::lang; ControlFeatureInterception::ControlFeatureInterception( const Reference< XComponentContext >& _rxORB ) :m_pUrlTransformer( new UrlTransformer( _rxORB ) ) @@ -71,8 +70,7 @@ namespace frm if ( m_xFirstDispatchInterceptor == _rxInterceptor ) { // our chain will have a new first element - Reference< XDispatchProviderInterceptor > xSlave( m_xFirstDispatchInterceptor->getSlaveDispatchProvider(), UNO_QUERY ); - m_xFirstDispatchInterceptor = xSlave; + m_xFirstDispatchInterceptor.set(m_xFirstDispatchInterceptor->getSlaveDispatchProvider(), UNO_QUERY); } // do this before removing the interceptor from the chain as we won't know it's slave afterwards) @@ -93,7 +91,7 @@ namespace frm // reconnect the chain if ( xMaster.is() ) { - xMaster->setSlaveDispatchProvider( Reference< XDispatchProvider >::query( xSlave ) ); + xMaster->setSlaveDispatchProvider( xSlave ); } // if somebody has registered the same interceptor twice, then we will remove |