diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-06-13 17:51:14 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-06-13 17:54:31 +0200 |
commit | 45f533aee9b44c702ae4f0ef039eddae9f132e51 (patch) | |
tree | feaa63a6809ed9e2ff60665d845a8b2f2f43b6ac /sc/qa/extras | |
parent | ee6ffa3f157aedc7775df198c914a225aea41b54 (diff) |
loplugin:staticcall
Change-Id: I670fbcd83e368f2821d37a392cbc007b1f4cd55e
Diffstat (limited to 'sc/qa/extras')
-rw-r--r-- | sc/qa/extras/macros-test.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
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<ScDocShell*>(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<ScDocShell*>(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; |