summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel <noel.grandin@collabora.co.uk>2021-02-17 08:47:31 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-02-17 09:12:56 +0100
commit44d308c5fb78c096d0a18ff3eb19171e2aeab118 (patch)
tree3cce05d08a71e69e679abb29657510a94a5cbc7c
parentfbad0809aee60df4a3cae8f6f2a11f2bd6446b87 (diff)
loplugin:referencecasting in cppuhelper
Change-Id: Ie19f01a35ef656f5532c5ec41dbed1c0e4cf77d8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111026 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
-rw-r--r--cppuhelper/qa/weak/test_weak.cxx6
-rw-r--r--cppuhelper/source/defaultbootstrap.cxx2
2 files changed, 4 insertions, 4 deletions
diff --git a/cppuhelper/qa/weak/test_weak.cxx b/cppuhelper/qa/weak/test_weak.cxx
index e37131c9f543..4db360b40e3a 100644
--- a/cppuhelper/qa/weak/test_weak.cxx
+++ b/cppuhelper/qa/weak/test_weak.cxx
@@ -81,9 +81,9 @@ void Test::testReferenceDispose() {
::rtl::Reference< Reference > r1(new RuntimeExceptionReference);
::rtl::Reference< Reference > r2(new Reference);
::rtl::Reference< Reference > r3(new DisposedExceptionReference);
- a->addReference(r1.get());
- a->addReference(r2.get());
- a->addReference(r3.get());
+ a->addReference(r1);
+ a->addReference(r2);
+ a->addReference(r3);
w.clear();
CPPUNIT_ASSERT(r1->isDisposed());
CPPUNIT_ASSERT(r2->isDisposed());
diff --git a/cppuhelper/source/defaultbootstrap.cxx b/cppuhelper/source/defaultbootstrap.cxx
index bf518a0c1f5d..e48b3ea67bc1 100644
--- a/cppuhelper/source/defaultbootstrap.cxx
+++ b/cppuhelper/source/defaultbootstrap.cxx
@@ -92,7 +92,7 @@ cppu::defaultBootstrap_InitialComponentContext(OUString const & iniUri)
css::uno::Reference< css::uno::XComponentContext > context(
createComponentContext(context_values.data(), context_values.size()));
smgr->setContext(context);
- cppu::installTypeDescriptionManager(tmgr.get());
+ cppu::installTypeDescriptionManager(tmgr);
return context;
}