diff options
author | Noel Grandin <noel@peralex.com> | 2015-10-30 07:59:06 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-10-30 11:08:36 +0200 |
commit | cb4fa1d1e2e61b686442a9d26220c0f1a6e1d4e7 (patch) | |
tree | 2d819dbc32230f7af209b59a5c1f262f4964fa84 /cppuhelper/source/servicemanager.cxx | |
parent | 3bc5df7f32501075149e4b41f6e98ea8dd2cfcbd (diff) |
use uno::Reference::set method instead of assignment
Change-Id: I080668f86f0ab8b3bba857ee21411f907ae285c4
Diffstat (limited to 'cppuhelper/source/servicemanager.cxx')
-rw-r--r-- | cppuhelper/source/servicemanager.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/cppuhelper/source/servicemanager.cxx b/cppuhelper/source/servicemanager.cxx index 97a831dfeddf..cd9ec85969d1 100644 --- a/cppuhelper/source/servicemanager.cxx +++ b/cppuhelper/source/servicemanager.cxx @@ -834,8 +834,7 @@ void cppuhelper::ServiceManager::loadImplementation( css::uno::Reference< css::lang::XMultiComponentFactory > smgr; if (implementation->info->alienContext.is()) { ctxt = implementation->info->alienContext; - smgr = css::uno::Reference< css::lang::XMultiComponentFactory >( - ctxt->getServiceManager(), css::uno::UNO_SET_THROW); + smgr.set(ctxt->getServiceManager(), css::uno::UNO_SET_THROW); } else { assert(context.is()); ctxt = context; @@ -1620,8 +1619,7 @@ void cppuhelper::ServiceManager::insertLegacyFactory( factoryInfo, css::uno::UNO_QUERY); css::uno::Reference< css::lang::XSingleServiceFactory > f2; if (!f1.is()) { - f2 = css::uno::Reference< css::lang::XSingleServiceFactory >( - factoryInfo, css::uno::UNO_QUERY); + f2.set(factoryInfo, css::uno::UNO_QUERY); if (!f2.is()) { throw css::lang::IllegalArgumentException( ("Bad XServiceInfo argument implements neither" |