summaryrefslogtreecommitdiff
path: root/cppuhelper/qa/weak/test_weak.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'cppuhelper/qa/weak/test_weak.cxx')
-rw-r--r--cppuhelper/qa/weak/test_weak.cxx6
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());