diff options
author | Noel Grandin <noel@peralex.com> | 2015-10-30 15:20:12 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-11-02 06:46:53 +0000 |
commit | dd1729f854af4f27f396d51d3c930c95d1011001 (patch) | |
tree | b65685fee797f657a3bc950902956c3820fd5106 /extensions/source/bibliography/bibbeam.cxx | |
parent | 1b41208608f472df8dd5879c27dca45cc2ea7740 (diff) |
use uno::Reference::set method instead of assignment
Change-Id: Ib297f2ab1c0c82703030f28d034d24f8a84a85ea
Reviewed-on: https://gerrit.libreoffice.org/19732
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'extensions/source/bibliography/bibbeam.cxx')
-rw-r--r-- | extensions/source/bibliography/bibbeam.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/extensions/source/bibliography/bibbeam.cxx b/extensions/source/bibliography/bibbeam.cxx index ad6e2463bc49..666950c9d9a7 100644 --- a/extensions/source/bibliography/bibbeam.cxx +++ b/extensions/source/bibliography/bibbeam.cxx @@ -145,7 +145,7 @@ namespace bib OUString aControlName; aAny >>= aControlName; - m_xControl = Reference< awt::XControl > ( xContext->getServiceManager()->createInstanceWithContext(aControlName, xContext), UNO_QUERY_THROW ); + m_xControl.set( xContext->getServiceManager()->createInstanceWithContext(aControlName, xContext), UNO_QUERY_THROW ); m_xControl->setModel( m_xGridModel ); } @@ -153,8 +153,8 @@ namespace bib { // Peer as Child to the FrameWindow m_xControlContainer->addControl("GridControl", m_xControl); - m_xGridWin=uno::Reference< awt::XWindow > (m_xControl, UNO_QUERY ); - m_xDispatchProviderInterception=uno::Reference< frame::XDispatchProviderInterception > (m_xControl, UNO_QUERY ); + m_xGridWin.set(m_xControl, UNO_QUERY ); + m_xDispatchProviderInterception.set(m_xControl, UNO_QUERY ); m_xGridWin->setVisible( sal_True ); m_xControl->setDesignMode( sal_True ); // initially switch on the design mode - switch it off _after_ loading the form |