diff options
author | Noel Grandin <noel@peralex.com> | 2013-06-04 17:16:58 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-06-05 08:13:23 +0200 |
commit | 95c0d568fdcd0da939c891d861bb470b28079170 (patch) | |
tree | ca4e4108178ec1176fd1a976df6f31a08d590210 /framework/source | |
parent | a1afcae81ca3c4b6bb240263b3259090d48c7715 (diff) |
use uno::Reference#clear() method...
...instead of assigning an empty value. Reduces code noise.
Change-Id: Ic95b081a41fb740a738c92b3407a9514ccb8b06e
Diffstat (limited to 'framework/source')
-rw-r--r-- | framework/source/fwe/xml/menudocumenthandler.cxx | 8 | ||||
-rw-r--r-- | framework/source/uielement/menubarmanager.cxx | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/framework/source/fwe/xml/menudocumenthandler.cxx b/framework/source/fwe/xml/menudocumenthandler.cxx index 6c70555c82a1..43a142af5acc 100644 --- a/framework/source/fwe/xml/menudocumenthandler.cxx +++ b/framework/source/fwe/xml/menudocumenthandler.cxx @@ -295,7 +295,7 @@ void SAL_CALL OReadMenuDocumentHandler::endElement( const OUString& aName ) if ( 0 == m_nElementDepth ) { m_xReader->endDocument(); - m_xReader = Reference< XDocumentHandler >(); + m_xReader.clear(); m_bMenuBarMode = sal_False; if ( !aName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( ELEMENT_MENUBAR ))) { @@ -443,7 +443,7 @@ void OReadMenuBarHandler::endElement( const OUString& aName ) if ( 0 == m_nElementDepth ) { m_xReader->endDocument(); - m_xReader = Reference< XDocumentHandler >(); + m_xReader.clear(); m_bMenuMode = sal_False; if ( !aName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( ELEMENT_MENU ))) { @@ -529,7 +529,7 @@ void SAL_CALL OReadMenuHandler::endElement( const OUString& aName ) if ( 0 == m_nElementDepth ) { m_xReader->endDocument(); - m_xReader = Reference< XDocumentHandler >(); + m_xReader.clear(); m_bMenuPopupMode = sal_False; if ( !aName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( ELEMENT_MENUPOPUP ))) { @@ -733,7 +733,7 @@ void SAL_CALL OReadMenuPopupHandler::endElement( const OUString& aName ) if ( 0 == m_nElementDepth ) { m_xReader->endDocument(); - m_xReader = Reference< XDocumentHandler >(); + m_xReader.clear(); m_bMenuMode = sal_False; if ( !aName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( ELEMENT_MENU ))) { diff --git a/framework/source/uielement/menubarmanager.cxx b/framework/source/uielement/menubarmanager.cxx index 7393306510ec..4f31d403c12e 100644 --- a/framework/source/uielement/menubarmanager.cxx +++ b/framework/source/uielement/menubarmanager.cxx @@ -714,7 +714,7 @@ void SAL_CALL MenuBarManager::disposing( const EventObject& Source ) throw ( Run pMenuItemDisposing->xMenuItemDispatch->removeStatusListener( static_cast< XStatusListener* >( this ), aTargetURL ); - pMenuItemDisposing->xMenuItemDispatch = Reference< XDispatch >(); + pMenuItemDisposing->xMenuItemDispatch.clear(); if ( pMenuItemDisposing->xPopupMenu.is() ) { Reference< com::sun::star::lang::XEventListener > xEventListener( pMenuItemDisposing->xPopupMenuController, UNO_QUERY ); |