diff options
Diffstat (limited to 'cppuhelper')
-rw-r--r-- | cppuhelper/qa/weak/test_weak.cxx | 6 | ||||
-rw-r--r-- | cppuhelper/source/defaultbootstrap.cxx | 2 |
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; } |