diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-07-20 18:26:07 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-07-21 08:49:56 +0200 |
commit | 7272951c121735a7350fa70840b255b7ef831f1a (patch) | |
tree | 52033c5b70c6c2c24ec5c507b7d38eca257356a5 /unotest | |
parent | d943b42214321c630147176210733399c57e6f19 (diff) |
loplugin:referencecasting in unotools..uui
Change-Id: Ia2c991591e65deb00710ab7a5b73bc42ae6b1b46
Reviewed-on: https://gerrit.libreoffice.org/76031
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'unotest')
-rw-r--r-- | unotest/source/cpp/macros_test.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/unotest/source/cpp/macros_test.cxx b/unotest/source/cpp/macros_test.cxx index f8449367876d..ffc2b970393c 100644 --- a/unotest/source/cpp/macros_test.cxx +++ b/unotest/source/cpp/macros_test.cxx @@ -25,8 +25,6 @@ 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(mxDesktop, uno::UNO_QUERY); - CPPUNIT_ASSERT_MESSAGE("no loader", xLoader.is()); std::vector<beans::PropertyValue> args; beans::PropertyValue aMacroValue; aMacroValue.Name = "MacroExecutionMode"; @@ -47,7 +45,7 @@ uno::Reference<css::lang::XComponent> MacrosTest::loadFromDesktop(const OUString args.insert(args.end(), rExtraArgs.begin(), rExtraArgs.end()); - uno::Reference<lang::XComponent> xComponent = xLoader->loadComponentFromURL(rURL, "_default", 0, comphelper::containerToSequence(args)); + uno::Reference<lang::XComponent> xComponent = mxDesktop->loadComponentFromURL(rURL, "_default", 0, comphelper::containerToSequence(args)); OUString sMessage = "loading failed: " + rURL; CPPUNIT_ASSERT_MESSAGE(OUStringToOString( sMessage, RTL_TEXTENCODING_UTF8 ).getStr( ), xComponent.is()); return xComponent; |