summaryrefslogtreecommitdiff
path: root/unotest/source/cpp
diff options
context:
space:
mode:
Diffstat (limited to 'unotest/source/cpp')
-rw-r--r--unotest/source/cpp/bootstrapfixturebase.cxx2
-rw-r--r--unotest/source/cpp/macros_test.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/unotest/source/cpp/bootstrapfixturebase.cxx b/unotest/source/cpp/bootstrapfixturebase.cxx
index e04c00f42994..af340d62f02a 100644
--- a/unotest/source/cpp/bootstrapfixturebase.cxx
+++ b/unotest/source/cpp/bootstrapfixturebase.cxx
@@ -99,7 +99,7 @@ void test::BootstrapFixtureBase::setUp()
m_xContext = comphelper::getProcessComponentContext();
m_xFactory = m_xContext->getServiceManager();
- m_xSFactory = uno::Reference<lang::XMultiServiceFactory>(m_xFactory, uno::UNO_QUERY_THROW);
+ m_xSFactory.set(m_xFactory, uno::UNO_QUERY_THROW);
}
void test::BootstrapFixtureBase::tearDown()
diff --git a/unotest/source/cpp/macros_test.cxx b/unotest/source/cpp/macros_test.cxx
index d7a57d5577b6..84ab1106451d 100644
--- a/unotest/source/cpp/macros_test.cxx
+++ b/unotest/source/cpp/macros_test.cxx
@@ -25,7 +25,7 @@ namespace unotest {
uno::Reference<css::lang::XComponent> MacrosTest::loadFromDesktop(const OUString& rURL, const OUString& rDocService, const uno::Sequence<beans::PropertyValue>& rExtraArgs)
{
CPPUNIT_ASSERT_MESSAGE("no desktop", mxDesktop.is());
- uno::Reference<frame::XComponentLoader> xLoader = uno::Reference<frame::XComponentLoader>(mxDesktop, uno::UNO_QUERY);
+ uno::Reference<frame::XComponentLoader> xLoader(mxDesktop, uno::UNO_QUERY);
CPPUNIT_ASSERT_MESSAGE("no loader", xLoader.is());
std::vector<beans::PropertyValue> args;
beans::PropertyValue aMacroValue;