summaryrefslogtreecommitdiff
path: root/sc/qa/extras
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2020-06-04 21:23:01 +0200
committerStephan Bergmann <sbergman@redhat.com>2020-06-05 07:34:21 +0200
commit4b85108773f9851f358a4daa8869eeadc638d103 (patch)
tree748991efb0f97fe39abf4c9ec8d24ae0aeec22c3 /sc/qa/extras
parente2bb284381b3355448f44ea13931aca1aea12e25 (diff)
Upcoming loplugin:elidestringvar: sc
Change-Id: I0a045ffde0228c316795dbdfce4e0d883bb3b55e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/95537 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sc/qa/extras')
-rw-r--r--sc/qa/extras/macros-test.cxx12
-rw-r--r--sc/qa/extras/sccellrangeobj.cxx3
2 files changed, 5 insertions, 10 deletions
diff --git a/sc/qa/extras/macros-test.cxx b/sc/qa/extras/macros-test.cxx
index 3801a9998895..ee1aa5c6fe27 100644
--- a/sc/qa/extras/macros-test.cxx
+++ b/sc/qa/extras/macros-test.cxx
@@ -77,9 +77,8 @@ void ScMacrosTest::saveAndReload(css::uno::Reference<css::lang::XComponent>& xCo
// module, we could move the test there then ) - relates to fdo#67547
void ScMacrosTest::testMSP()
{
- const OUString aFileNameBase("MasterScriptProviderProblem.ods");
OUString aFileName;
- createFileURL(aFileNameBase, aFileName);
+ createFileURL("MasterScriptProviderProblem.ods", aFileName);
uno::Reference< css::lang::XComponent > xComponent = loadFromDesktop(aFileName, "com.sun.star.sheet.SpreadsheetDocument");
CPPUNIT_ASSERT_MESSAGE("Failed to load MasterScriptProviderProblem.ods", xComponent.is());
@@ -109,9 +108,8 @@ void ScMacrosTest::testMSP()
void ScMacrosTest::testPasswordProtectedStarBasic()
{
- const OUString aFileNameBase("testTypePassword.ods");
OUString aFileName;
- createFileURL(aFileNameBase, aFileName);
+ createFileURL("testTypePassword.ods", aFileName);
uno::Reference< css::lang::XComponent > xComponent = loadFromDesktop(aFileName, "com.sun.star.sheet.SpreadsheetDocument");
CPPUNIT_ASSERT_MESSAGE("Failed to load testTypePassword.ods", xComponent.is());
@@ -164,9 +162,8 @@ void ScMacrosTest::testPasswordProtectedStarBasic()
void ScMacrosTest::testStarBasic()
{
- const OUString aFileNameBase("StarBasic.ods");
OUString aFileName;
- createFileURL(aFileNameBase, aFileName);
+ createFileURL("StarBasic.ods", aFileName);
uno::Reference< css::lang::XComponent > xComponent = loadFromDesktop(aFileName, "com.sun.star.sheet.SpreadsheetDocument");
CPPUNIT_ASSERT_MESSAGE("Failed to load StarBasic.ods", xComponent.is());
@@ -361,9 +358,8 @@ void ScMacrosTest::testVba()
void ScMacrosTest::testRowColumn()
{
- const OUString aFileNameBase("StarBasic.ods");
OUString aFileName;
- createFileURL(aFileNameBase, aFileName);
+ createFileURL("StarBasic.ods", aFileName);
uno::Reference< css::lang::XComponent > xComponent = loadFromDesktop(aFileName, "com.sun.star.sheet.SpreadsheetDocument");
CPPUNIT_ASSERT_MESSAGE("Failed to load StarBasic.ods", xComponent.is());
diff --git a/sc/qa/extras/sccellrangeobj.cxx b/sc/qa/extras/sccellrangeobj.cxx
index 1c0513a9a836..689783dafcbd 100644
--- a/sc/qa/extras/sccellrangeobj.cxx
+++ b/sc/qa/extras/sccellrangeobj.cxx
@@ -249,8 +249,7 @@ void ScCellRangeObj::setUp()
CalcUnoApiTest::setUp();
OUString aFileURL;
- const OUString aFileBase("xcellrangesquery.ods");
- createFileURL(aFileBase, aFileURL);
+ createFileURL("xcellrangesquery.ods", aFileURL);
mxComponent = loadFromDesktop(aFileURL, "com.sun.star.sheet.SpreadsheetDocument");
}