summaryrefslogtreecommitdiff
path: root/cppuhelper
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 /cppuhelper
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 'cppuhelper')
-rw-r--r--cppuhelper/qa/propertysetmixin/test_propertysetmixin.cxx8
-rw-r--r--cppuhelper/source/defaultbootstrap.cxx4
2 files changed, 6 insertions, 6 deletions
diff --git a/cppuhelper/qa/propertysetmixin/test_propertysetmixin.cxx b/cppuhelper/qa/propertysetmixin/test_propertysetmixin.cxx
index cff87436ce2c..4e0d3a9258bd 100644
--- a/cppuhelper/qa/propertysetmixin/test_propertysetmixin.cxx
+++ b/cppuhelper/qa/propertysetmixin/test_propertysetmixin.cxx
@@ -270,16 +270,16 @@ void Test::testEmpty2(
OUString("any"));
CPPUNIT_FAIL("exception expected");
} catch (css::beans::UnknownPropertyException &) {}
- rtl::Reference< BoundListener > boundListener1(new BoundListener);
+ rtl::Reference boundListener1(new BoundListener);
empty2p->addPropertyChangeListener(OUString(), boundListener1.get());
empty2p->addPropertyChangeListener(OUString(), boundListener1.get());
- rtl::Reference< BoundListener > boundListener2(new BoundListener);
+ rtl::Reference boundListener2(new BoundListener);
empty2p->removePropertyChangeListener(
OUString(), boundListener2.get());
- rtl::Reference< VetoListener > vetoListener1(new VetoListener);
+ rtl::Reference vetoListener1(new VetoListener);
empty2p->addVetoableChangeListener(OUString(), vetoListener1.get());
empty2p->addVetoableChangeListener(OUString(), vetoListener1.get());
- rtl::Reference< VetoListener > vetoListener2(new VetoListener);
+ rtl::Reference vetoListener2(new VetoListener);
empty2p->addVetoableChangeListener(OUString(), vetoListener2.get());
empty2p->removeVetoableChangeListener(OUString(), vetoListener2.get());
css::uno::Reference< css::beans::XFastPropertySet > empty2f(
diff --git a/cppuhelper/source/defaultbootstrap.cxx b/cppuhelper/source/defaultbootstrap.cxx
index fe971f0c139d..c2d69990bf24 100644
--- a/cppuhelper/source/defaultbootstrap.cxx
+++ b/cppuhelper/source/defaultbootstrap.cxx
@@ -53,10 +53,10 @@ cppu::defaultBootstrap_InitialComponentContext(OUString const & iniUri)
throw css::uno::DeploymentException(
"Cannot open uno ini " + iniUri);
}
- rtl::Reference< cppuhelper::ServiceManager > smgr(
+ rtl::Reference smgr(
new cppuhelper::ServiceManager);
smgr->init(getBootstrapVariable(bs, "UNO_SERVICES"));
- rtl::Reference< cppuhelper::TypeManager > tmgr(new cppuhelper::TypeManager);
+ rtl::Reference tmgr(new cppuhelper::TypeManager);
tmgr->init(getBootstrapVariable(bs, "UNO_TYPES"));
std::vector< cppu::ContextEntry_Init > context_values;
context_values.push_back(