diff options
author | Noel Grandin <noel@peralex.com> | 2015-11-05 12:42:10 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-11-05 12:42:42 +0200 |
commit | 94268513eeded3952972d7efe0a9bc689605421b (patch) | |
tree | 5994adbdba4ca18b8c326e70db2a73a18527caa0 /ucbhelper | |
parent | c89ba1dedc511ec17df1e35f8e0696bc20121491 (diff) |
use uno::Reference::set method instead of assignment
Change-Id: Id57ccff7ea6cf5c7053b51268b1190f5459bb357
Diffstat (limited to 'ucbhelper')
-rw-r--r-- | ucbhelper/source/client/content.cxx | 3 | ||||
-rw-r--r-- | ucbhelper/source/client/proxydecider.cxx | 3 | ||||
-rw-r--r-- | ucbhelper/source/provider/registerucb.cxx | 2 |
3 files changed, 3 insertions, 5 deletions
diff --git a/ucbhelper/source/client/content.cxx b/ucbhelper/source/client/content.cxx index a384a5e7e0e2..54363ef8f97b 100644 --- a/ucbhelper/source/client/content.cxx +++ b/ucbhelper/source/client/content.cxx @@ -1298,8 +1298,7 @@ Reference< XCommandProcessor > Content_Impl::getCommandProcessor() osl::MutexGuard aGuard( m_aMutex ); if ( !m_xCommandProcessor.is() ) - m_xCommandProcessor - = Reference< XCommandProcessor >( getContent(), UNO_QUERY ); + m_xCommandProcessor.set( getContent(), UNO_QUERY ); } return m_xCommandProcessor; diff --git a/ucbhelper/source/client/proxydecider.cxx b/ucbhelper/source/client/proxydecider.cxx index 49fa8ed2cae4..b51e88988ef1 100644 --- a/ucbhelper/source/client/proxydecider.cxx +++ b/ucbhelper/source/client/proxydecider.cxx @@ -369,8 +369,7 @@ InternetProxyDecider_Impl::InternetProxyDecider_Impl( // Register as listener for config changes. - m_xNotifier = uno::Reference< util::XChangesNotifier >( - xInterface, uno::UNO_QUERY ); + m_xNotifier.set( xInterface, uno::UNO_QUERY ); OSL_ENSURE( m_xNotifier.is(), "InternetProxyDecider - No notifier!" ); diff --git a/ucbhelper/source/provider/registerucb.cxx b/ucbhelper/source/provider/registerucb.cxx index 5016155d6a9e..d13a7295c1f3 100644 --- a/ucbhelper/source/provider/registerucb.cxx +++ b/ucbhelper/source/provider/registerucb.cxx @@ -80,7 +80,7 @@ registerAtUcb( if (!xProvider.is()) try { - xProvider = uno::Reference< ucb::XContentProvider >( + xProvider.set( rxContext->getServiceManager()->createInstanceWithContext(rName, rxContext), uno::UNO_QUERY); } |