summaryrefslogtreecommitdiff
path: root/configmgr
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2019-02-19 16:00:52 +0100
committerStephan Bergmann <sbergman@redhat.com>2019-02-19 17:39:16 +0100
commit5206992e6e9b22b48cea0a4a7626ee576c66492e (patch)
treedfc29178d2536d31d8de06556a32503feec3fe2b /configmgr
parent12180ed8d6d64f78d37c6ee070da5a1ab3684843 (diff)
Some uses of C++17 class template argument deduction
Change-Id: I47c469c0fcdff41d83729be9489c946e81ef3686 Reviewed-on: https://gerrit.libreoffice.org/68020 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'configmgr')
-rw-r--r--configmgr/qa/unit/test.cxx4
-rw-r--r--configmgr/source/access.cxx6
-rw-r--r--configmgr/source/configurationprovider.cxx2
-rw-r--r--configmgr/source/data.cxx2
4 files changed, 7 insertions, 7 deletions
diff --git a/configmgr/qa/unit/test.cxx b/configmgr/qa/unit/test.cxx
index f98fa730f58c..367d84a6cbe1 100644
--- a/configmgr/qa/unit/test.cxx
+++ b/configmgr/qa/unit/test.cxx
@@ -359,14 +359,14 @@ void Test::testListener()
// test with no props.
{
- rtl::Reference<comphelper::ConfigurationListener> xListener(
+ rtl::Reference xListener(
new comphelper::ConfigurationListener(aRandomPath));
xListener->dispose();
}
// test some changes
{
- rtl::Reference<comphelper::ConfigurationListener> xListener(
+ rtl::Reference xListener(
new comphelper::ConfigurationListener(aRandomPath));
comphelper::ConfigurationListenerProperty<bool> aSetting(xListener, "AutoRedraw");
diff --git a/configmgr/source/access.cxx b/configmgr/source/access.cxx
index 90d95ec87759..1f07df1b3d87 100644
--- a/configmgr/source/access.cxx
+++ b/configmgr/source/access.cxx
@@ -1119,7 +1119,7 @@ void Access::insertByName(
aName, static_cast<cppu::OWeakObject *>(this), 0);
}
checkValue(aElement, TYPE_ANY, true);
- rtl::Reference< ChildAccess > child(
+ rtl::Reference child(
new ChildAccess(
components_, getRootAccess(), this, aName,
new PropertyNode(
@@ -1508,7 +1508,7 @@ void Access::insertLocalizedValueChild(
LocalizedPropertyNode * locprop = static_cast< LocalizedPropertyNode * >(
getNode().get());
checkValue(value, locprop->getStaticType(), locprop->isNillable());
- rtl::Reference< ChildAccess > child(
+ rtl::Reference child(
new ChildAccess(
components_, getRootAccess(), this, name,
new LocalizedValueNode(Data::NO_LAYER, value)));
@@ -1932,7 +1932,7 @@ rtl::Reference< ChildAccess > Access::getModifiedChild(
rtl::Reference< ChildAccess > Access::createUnmodifiedChild(
const OUString &name, const rtl::Reference< Node > &node)
{
- rtl::Reference< ChildAccess > child(
+ rtl::Reference child(
new ChildAccess(components_, getRootAccess(), this, name, node));
cachedChildren_[name] = child.get();
return child;
diff --git a/configmgr/source/configurationprovider.cxx b/configmgr/source/configurationprovider.cxx
index f093e9f684bc..1adcadafdb77 100644
--- a/configmgr/source/configurationprovider.cxx
+++ b/configmgr/source/configurationprovider.cxx
@@ -259,7 +259,7 @@ Service::createInstanceWithArguments(
}
osl::MutexGuard guard(*lock_);
Components & components = Components::getSingleton(context_);
- rtl::Reference< RootAccess > root(
+ rtl::Reference root(
new RootAccess(components, nodepath, locale, update));
if (root->isValue()) {
throw css::uno::Exception(
diff --git a/configmgr/source/data.cxx b/configmgr/source/data.cxx
index a24359fdb664..6eb2d5902db3 100644
--- a/configmgr/source/data.cxx
+++ b/configmgr/source/data.cxx
@@ -300,7 +300,7 @@ NodeMap & Data::getComponents() const {
Additions * Data::addExtensionXcuAdditions(
OUString const & url, int layer)
{
- rtl::Reference< ExtensionXcu > item(new ExtensionXcu);
+ rtl::Reference item(new ExtensionXcu);
ExtensionXcuAdditions::iterator i(
extensionXcuAdditions_.emplace(
url, rtl::Reference< ExtensionXcu >()).first);