diff options
author | Noel Grandin <noel@peralex.com> | 2015-10-30 14:22:53 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-10-31 12:56:38 +0000 |
commit | 3c971162b57bb042dc001f775b8e20ec37ecbef8 (patch) | |
tree | 49c14944b816284c05a3d20897b92a2e2a1fd2ad /embeddedobj/source/general/docholder.cxx | |
parent | 4530451d40470bf5359645de0c142ddf9dc329b6 (diff) |
use uno::Reference::set method instead of assignment
Change-Id: I150f213ab033f5fc1b50abe4e1529292206c9feb
Reviewed-on: https://gerrit.libreoffice.org/19689
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'embeddedobj/source/general/docholder.cxx')
-rw-r--r-- | embeddedobj/source/general/docholder.cxx | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/embeddedobj/source/general/docholder.cxx b/embeddedobj/source/general/docholder.cxx index 9e78fa2e55e4..6c8f7b0ed038 100644 --- a/embeddedobj/source/general/docholder.cxx +++ b/embeddedobj/source/general/docholder.cxx @@ -235,9 +235,9 @@ void DocumentHolder::CloseFrame() if ( xComp.is() ) xComp->dispose(); - m_xHatchWindow = uno::Reference< awt::XWindow >(); - m_xOwnWindow = uno::Reference< awt::XWindow >(); - m_xFrame = uno::Reference< frame::XFrame >(); + m_xHatchWindow.clear(); + m_xOwnWindow.clear(); + m_xFrame.clear(); } @@ -415,7 +415,7 @@ bool DocumentHolder::ShowInplace( const uno::Reference< awt::XWindowPeer >& xPar awt::Size( HATCH_BORDER_WIDTH, HATCH_BORDER_WIDTH ) ); uno::Reference< awt::XWindowPeer > xHatchWinPeer( xHatchWindow, uno::UNO_QUERY ); - xHWindow = uno::Reference< awt::XWindow >( xHatchWinPeer, uno::UNO_QUERY ); + xHWindow.set( xHatchWinPeer, uno::UNO_QUERY ); if ( !xHWindow.is() ) throw uno::RuntimeException(); // TODO: can not create own window @@ -1107,9 +1107,9 @@ void SAL_CALL DocumentHolder::disposing( const css::lang::EventObject& aSource ) if( m_xFrame.is() && m_xFrame == aSource.Source ) { - m_xHatchWindow = uno::Reference< awt::XWindow >(); - m_xOwnWindow = uno::Reference< awt::XWindow >(); - m_xFrame = uno::Reference< frame::XFrame >(); + m_xHatchWindow.clear(); + m_xOwnWindow.clear(); + m_xFrame.clear(); } } @@ -1138,9 +1138,9 @@ void SAL_CALL DocumentHolder::notifyClosing( const lang::EventObject& aSource ) if( m_xFrame.is() && m_xFrame == aSource.Source ) { - m_xHatchWindow = uno::Reference< awt::XWindow >(); - m_xOwnWindow = uno::Reference< awt::XWindow >(); - m_xFrame = uno::Reference< frame::XFrame >(); + m_xHatchWindow.clear(); + m_xOwnWindow.clear(); + m_xFrame.clear(); } } |