cppuhelper/qa/weak/test_weak.cxx | 6 +++--- cppuhelper/source/defaultbootstrap.cxx | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-)
New commits: commit 44d308c5fb78c096d0a18ff3eb19171e2aeab118 Author: Noel <noel.gran...@collabora.co.uk> AuthorDate: Wed Feb 17 08:47:31 2021 +0200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Wed Feb 17 09:12:56 2021 +0100 loplugin:referencecasting in cppuhelper Change-Id: Ie19f01a35ef656f5532c5ec41dbed1c0e4cf77d8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111026 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> 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; } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits