diff options
author | Noel <noel.grandin@collabora.co.uk> | 2021-02-17 08:47:31 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-02-17 09:12:56 +0100 |
commit | 44d308c5fb78c096d0a18ff3eb19171e2aeab118 (patch) | |
tree | 3cce05d08a71e69e679abb29657510a94a5cbc7c /cppuhelper/qa | |
parent | fbad0809aee60df4a3cae8f6f2a11f2bd6446b87 (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>
Diffstat (limited to 'cppuhelper/qa')
-rw-r--r-- | cppuhelper/qa/weak/test_weak.cxx | 6 |
1 files changed, 3 insertions, 3 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()); |