summaryrefslogtreecommitdiff
path: root/configmgr
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-10-30 07:59:06 +0200
committerNoel Grandin <noel@peralex.com>2015-10-30 11:08:36 +0200
commitcb4fa1d1e2e61b686442a9d26220c0f1a6e1d4e7 (patch)
tree2d819dbc32230f7af209b59a5c1f262f4964fa84 /configmgr
parent3bc5df7f32501075149e4b41f6e98ea8dd2cfcbd (diff)
use uno::Reference::set method instead of assignment
Change-Id: I080668f86f0ab8b3bba857ee21411f907ae285c4
Diffstat (limited to 'configmgr')
-rw-r--r--configmgr/qa/unit/test.cxx2
-rw-r--r--configmgr/source/components.cxx3
-rw-r--r--configmgr/source/configurationregistry.cxx2
3 files changed, 3 insertions, 4 deletions
diff --git a/configmgr/qa/unit/test.cxx b/configmgr/qa/unit/test.cxx
index 89dac95c113f..82c9b1e75ed9 100644
--- a/configmgr/qa/unit/test.cxx
+++ b/configmgr/qa/unit/test.cxx
@@ -151,7 +151,7 @@ RecursiveTest::RecursiveTest(
void RecursiveTest::test()
{
- properties_ = css::uno::Reference< css::beans::XPropertySet >(
+ properties_.set(
test_.createUpdateAccess(
OUString("/org.openoffice.Office.UI.GenericCommands/UserInterface/Commands/"
".uno:WebHtml")),
diff --git a/configmgr/source/components.cxx b/configmgr/source/components.cxx
index c1aec0702788..40e1eb610ff2 100644
--- a/configmgr/source/components.cxx
+++ b/configmgr/source/components.cxx
@@ -438,8 +438,7 @@ css::beans::Optional< css::uno::Any > Components::getExternalValue(
}
css::uno::Reference< css::beans::XPropertySet > propset;
if (service.is()) {
- propset = css::uno::Reference< css::beans::XPropertySet >(
- service, css::uno::UNO_QUERY_THROW);
+ propset.set( service, css::uno::UNO_QUERY_THROW);
}
j = externalServices_.insert(
ExternalServices::value_type(name, propset)).first;
diff --git a/configmgr/source/configurationregistry.cxx b/configmgr/source/configurationregistry.cxx
index 4fadaf6a1f8b..2d0274628292 100644
--- a/configmgr/source/configurationregistry.cxx
+++ b/configmgr/source/configurationregistry.cxx
@@ -323,7 +323,7 @@ Service::Service(
{
assert(context.is());
try {
- provider_ = css::uno::Reference< css::lang::XMultiServiceFactory >(
+ provider_.set(
context->getServiceManager()->createInstanceWithContext(
"com.sun.star.configuration.DefaultProvider", context),
css::uno::UNO_QUERY_THROW);