summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2013-10-22 15:09:32 +0200
committerStephan Bergmann <sbergman@redhat.com>2013-10-22 15:09:32 +0200
commit2bcb5f5c36616611880e29d15a6f7327d506c54d (patch)
tree95eeb2fb829e595f63389f8fa8d54b892be03563
parente0280873b89aa5ac518b2e76175bc2c6103729dc (diff)
Fix tools/string.hxx remnants
Change-Id: I06c95dcfcf2af14e109fabdde69bf98d06801331
-rw-r--r--sc/qa/extras/macros-test.cxx19
1 files changed, 11 insertions, 8 deletions
diff --git a/sc/qa/extras/macros-test.cxx b/sc/qa/extras/macros-test.cxx
index 074edb54a5d6..a35338037f26 100644
--- a/sc/qa/extras/macros-test.cxx
+++ b/sc/qa/extras/macros-test.cxx
@@ -70,8 +70,6 @@ void ScMacrosTest::testMSP()
CPPUNIT_ASSERT_MESSAGE("Failed to load MasterScriptProviderProblem.ods", xComponent.is());
- OUString aURL("vnd.sun.Star.script:Standard.Module1.TestMSP?language=Basic&location=document");
- String sUrl = aURL;
Any aRet;
Sequence< sal_Int16 > aOutParamIndex;
Sequence< Any > aOutParam;
@@ -83,7 +81,10 @@ void ScMacrosTest::testMSP()
ScDocShell* xDocSh = dynamic_cast<ScDocShell*>(pFoundShell);
CPPUNIT_ASSERT(xDocSh != NULL);
- pFoundShell->CallXScript(xComponent, sUrl, aParams, aRet, aOutParamIndex,aOutParam);
+ pFoundShell->CallXScript(
+ xComponent,
+ "vnd.sun.Star.script:Standard.Module1.TestMSP?language=Basic&location=document",
+ aParams, aRet, aOutParamIndex, aOutParam);
OUString sResult;
aRet >>= sResult;
@@ -102,8 +103,6 @@ void ScMacrosTest::testStarBasic()
CPPUNIT_ASSERT_MESSAGE("Failed to load StarBasic.ods", xComponent.is());
- OUString aURL("vnd.sun.Star.script:Standard.Module1.Macro1?language=Basic&location=document");
- String sUrl = aURL;
Any aRet;
Sequence< sal_Int16 > aOutParamIndex;
Sequence< Any > aOutParam;
@@ -115,7 +114,10 @@ void ScMacrosTest::testStarBasic()
ScDocShell* xDocSh = static_cast<ScDocShell*>(pFoundShell);
ScDocument* pDoc = xDocSh->GetDocument();
- pFoundShell->CallXScript(xComponent, sUrl, aParams, aRet, aOutParamIndex,aOutParam);
+ pFoundShell->CallXScript(
+ xComponent,
+ "vnd.sun.Star.script:Standard.Module1.Macro1?language=Basic&location=document",
+ aParams, aRet, aOutParamIndex, aOutParam);
double aValue;
pDoc->GetValue(0,0,0,aValue);
std::cout << "returned value = " << aValue << std::endl;
@@ -238,7 +240,6 @@ void ScMacrosTest::testVba()
OUString sMsg( "Failed to load " + aFileName );
CPPUNIT_ASSERT_MESSAGE( OUStringToOString( sMsg, RTL_TEXTENCODING_UTF8 ).getStr(), xComponent.is() );
- String sUrl = testInfo[i].sMacroUrl;
Any aRet;
Sequence< sal_Int16 > aOutParamIndex;
Sequence< Any > aOutParam;
@@ -256,7 +257,9 @@ 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(xComponent, sUrl, aParams, aRet, aOutParamIndex,aOutParam);
+ pFoundShell->CallXScript(
+ xComponent, testInfo[i].sMacroUrl, aParams, aRet, aOutParamIndex,
+ aOutParam);
OUString aStringRes;
aRet >>= aStringRes;
std::cout << "value of Ret " << OUStringToOString( aStringRes, RTL_TEXTENCODING_UTF8 ).getStr() << std::endl;