From 45f533aee9b44c702ae4f0ef039eddae9f132e51 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 13 Jun 2014 17:51:14 +0200 Subject: loplugin:staticcall Change-Id: I670fbcd83e368f2821d37a392cbc007b1f4cd55e --- sc/qa/extras/macros-test.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sc/qa/extras') diff --git a/sc/qa/extras/macros-test.cxx b/sc/qa/extras/macros-test.cxx index e682d6aca14b..cd65d0987af2 100644 --- a/sc/qa/extras/macros-test.cxx +++ b/sc/qa/extras/macros-test.cxx @@ -85,7 +85,7 @@ void ScMacrosTest::testMSP() ScDocShell* xDocSh = dynamic_cast(pFoundShell); CPPUNIT_ASSERT(xDocSh != NULL); - pFoundShell->CallXScript( + SfxObjectShell::CallXScript( xComponent, "vnd.sun.Star.script:Standard.Module1.TestMSP?language=Basic&location=document", aParams, aRet, aOutParamIndex, aOutParam); @@ -118,7 +118,7 @@ void ScMacrosTest::testStarBasic() ScDocShell* xDocSh = static_cast(pFoundShell); ScDocument* pDoc = xDocSh->GetDocument(); - pFoundShell->CallXScript( + SfxObjectShell::CallXScript( xComponent, "vnd.sun.Star.script:Standard.Module1.Macro1?language=Basic&location=document", aParams, aRet, aOutParamIndex, aOutParam); @@ -261,7 +261,7 @@ void ScMacrosTest::testVba() CPPUNIT_ASSERT_MESSAGE("Failed to access document shell", pFoundShell); std::cout << "about to invoke vba test in " << OUStringToOString( aFileName, RTL_TEXTENCODING_UTF8 ).getStr() << std::endl; - pFoundShell->CallXScript( + SfxObjectShell::CallXScript( xComponent, testInfo[i].sMacroUrl, aParams, aRet, aOutParamIndex, aOutParam); OUString aStringRes; -- cgit v1.2.3