summaryrefslogtreecommitdiff
path: root/sc/qa/extras
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-11-06 09:36:49 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-11-06 09:36:49 +0100
commite53db9461e1cc7ad25ecf5e96021a2f4e70857b1 (patch)
tree768cc65694d0bf8c01e7a7cc192ad55240b58993 /sc/qa/extras
parent1a3834d7b9382968cf7ba3755d41a6e317997aec (diff)
loplugin:stringconstant: elide explicit ctor usage (automatic rewrite)
Change-Id: Ief66447f04245b8ab0a4acbf097eb7283529d45d
Diffstat (limited to 'sc/qa/extras')
-rw-r--r--sc/qa/extras/new_cond_format.cxx2
-rw-r--r--sc/qa/extras/scannotationobj.cxx2
-rw-r--r--sc/qa/extras/scannotationsobj.cxx2
-rw-r--r--sc/qa/extras/sccondformats.cxx4
-rw-r--r--sc/qa/extras/scdatapilotfieldobj.cxx2
-rw-r--r--sc/qa/extras/scdatapilottableobj.cxx2
-rw-r--r--sc/qa/extras/scmodelobj.cxx2
-rw-r--r--sc/qa/extras/scnamedrangeobj.cxx4
-rw-r--r--sc/qa/extras/scnamedrangesobj.cxx2
-rw-r--r--sc/qa/extras/scoutlineobj.cxx2
-rw-r--r--sc/qa/extras/scstyleloaderobj.cxx2
-rw-r--r--sc/qa/extras/sctablesheetobj.cxx2
-rw-r--r--sc/qa/extras/sctablesheetsobj.cxx2
13 files changed, 15 insertions, 15 deletions
diff --git a/sc/qa/extras/new_cond_format.cxx b/sc/qa/extras/new_cond_format.cxx
index 8dc111bacf5e..c4fab7cd85f7 100644
--- a/sc/qa/extras/new_cond_format.cxx
+++ b/sc/qa/extras/new_cond_format.cxx
@@ -73,7 +73,7 @@ uno::Reference< uno::XInterface > ScConditionalFormatTest::init(sal_Int32 nIndex
{
// get the test file
OUString aFileURL;
- createFileURL(OUString("new_cond_format_api.ods"), aFileURL);
+ createFileURL("new_cond_format_api.ods", aFileURL);
mxComponent = loadFromDesktop(aFileURL);
}
CPPUNIT_ASSERT_MESSAGE("Component not loaded", mxComponent.is());
diff --git a/sc/qa/extras/scannotationobj.cxx b/sc/qa/extras/scannotationobj.cxx
index 85316528b211..e0b25000acc9 100644
--- a/sc/qa/extras/scannotationobj.cxx
+++ b/sc/qa/extras/scannotationobj.cxx
@@ -82,7 +82,7 @@ uno::Reference< uno::XInterface > ScAnnontationObj::init()
// get the test file
OUString aFileURL;
- createFileURL(OUString("ScAnnotationObj.ods"), aFileURL);
+ createFileURL("ScAnnotationObj.ods", aFileURL);
if(!mxComponent.is())
mxComponent = loadFromDesktop(aFileURL);
CPPUNIT_ASSERT_MESSAGE("Component not loaded",mxComponent.is());
diff --git a/sc/qa/extras/scannotationsobj.cxx b/sc/qa/extras/scannotationsobj.cxx
index 109c0654b08c..84b51245d8ee 100644
--- a/sc/qa/extras/scannotationsobj.cxx
+++ b/sc/qa/extras/scannotationsobj.cxx
@@ -73,7 +73,7 @@ uno::Reference< uno::XInterface > ScAnnontationsObj::init()
{
// get the test file
OUString aFileURL;
- createFileURL(OUString("ScAnnotationObj.ods"), aFileURL);
+ createFileURL("ScAnnotationObj.ods", aFileURL);
if(!mxComponent.is())
mxComponent = loadFromDesktop(aFileURL);
CPPUNIT_ASSERT_MESSAGE("Component not loaded",mxComponent.is());
diff --git a/sc/qa/extras/sccondformats.cxx b/sc/qa/extras/sccondformats.cxx
index 43d0d6ee948f..85a9d592bba0 100644
--- a/sc/qa/extras/sccondformats.cxx
+++ b/sc/qa/extras/sccondformats.cxx
@@ -65,7 +65,7 @@ uno::Reference< uno::XInterface > ScConditionalFormatTest::init()
{
// get the test file
OUString aFileURL;
- createFileURL(OUString("new_cond_format_test.ods"), aFileURL);
+ createFileURL("new_cond_format_test.ods", aFileURL);
if(!mxComponent.is())
mxComponent = loadFromDesktop(aFileURL);
CPPUNIT_ASSERT_MESSAGE("Component not loaded",mxComponent.is());
@@ -124,7 +124,7 @@ void ScConditionalFormatTest::testUndoAnchor()
{
const OString sFailedMessage = OString("Failed on :");
OUString aFileURL;
- createFileURL(OUString("document_with_linked_graphic.ods"), aFileURL);
+ createFileURL("document_with_linked_graphic.ods", aFileURL);
// open the document with graphic included
uno::Reference< css::lang::XComponent > xComponent = loadFromDesktop(aFileURL);
CPPUNIT_ASSERT(xComponent.is());
diff --git a/sc/qa/extras/scdatapilotfieldobj.cxx b/sc/qa/extras/scdatapilotfieldobj.cxx
index d2d9bd0c2c23..d97cd1ffa189 100644
--- a/sc/qa/extras/scdatapilotfieldobj.cxx
+++ b/sc/qa/extras/scdatapilotfieldobj.cxx
@@ -60,7 +60,7 @@ ScDataPilotFieldObj::ScDataPilotFieldObj()
uno::Reference< uno::XInterface > ScDataPilotFieldObj::init()
{
OUString aFileURL;
- createFileURL(OUString("scdatapilotfieldobj.ods"), aFileURL);
+ createFileURL("scdatapilotfieldobj.ods", aFileURL);
if(!mxComponent.is())
mxComponent = loadFromDesktop(aFileURL, "com.sun.star.sheet.SpreadsheetDocument");
CPPUNIT_ASSERT(mxComponent.is());
diff --git a/sc/qa/extras/scdatapilottableobj.cxx b/sc/qa/extras/scdatapilottableobj.cxx
index a39a4c3635b8..88e31a545d2d 100644
--- a/sc/qa/extras/scdatapilottableobj.cxx
+++ b/sc/qa/extras/scdatapilottableobj.cxx
@@ -112,7 +112,7 @@ uno::Reference< uno::XInterface > ScDataPilotTableObj::getSheets()
uno::Reference< uno::XInterface > ScDataPilotTableObj::initDP2()
{
OUString aFileURL;
- createFileURL(OUString("ScDataPilotTableObj.ods"), aFileURL);
+ createFileURL("ScDataPilotTableObj.ods", aFileURL);
if(!mxComponent.is())
mxComponent = loadFromDesktop(aFileURL, "com.sun.star.sheet.SpreadsheetDocument");
CPPUNIT_ASSERT(mxComponent.is());
diff --git a/sc/qa/extras/scmodelobj.cxx b/sc/qa/extras/scmodelobj.cxx
index dbddb106f532..929e76d3703a 100644
--- a/sc/qa/extras/scmodelobj.cxx
+++ b/sc/qa/extras/scmodelobj.cxx
@@ -47,7 +47,7 @@ uno::Reference< lang::XComponent > ScModelObj::mxComponent;
uno::Reference< uno::XInterface > ScModelObj::init()
{
OUString aFileURL;
- createFileURL(OUString("ScModelObj.ods"), aFileURL);
+ createFileURL("ScModelObj.ods", aFileURL);
if(!mxComponent.is())
mxComponent = loadFromDesktop(aFileURL, "com.sun.star.sheet.SpreadsheetDocument");
CPPUNIT_ASSERT(mxComponent.is());
diff --git a/sc/qa/extras/scnamedrangeobj.cxx b/sc/qa/extras/scnamedrangeobj.cxx
index 20dfa517bb61..4b01d6a26030 100644
--- a/sc/qa/extras/scnamedrangeobj.cxx
+++ b/sc/qa/extras/scnamedrangeobj.cxx
@@ -66,7 +66,7 @@ ScNamedRangeObj::ScNamedRangeObj():
uno::Reference< sheet::XNamedRanges > ScNamedRangeObj::init_impl()
{
OUString aFileURL;
- createFileURL(OUString("ScNamedRangeObj.ods"), aFileURL);
+ createFileURL("ScNamedRangeObj.ods", aFileURL);
if(!mxComponent.is())
mxComponent = loadFromDesktop(aFileURL, "com.sun.star.sheet.SpreadsheetDocument");
CPPUNIT_ASSERT(mxComponent.is());
@@ -90,7 +90,7 @@ uno::Reference< sheet::XNamedRange> ScNamedRangeObj::getNamedRange(const OUStrin
uno::Reference< uno::XInterface > ScNamedRangeObj::init()
{
- return getNamedRange(OUString("NamedRange"));
+ return getNamedRange("NamedRange");
}
void ScNamedRangeObj::setUp()
diff --git a/sc/qa/extras/scnamedrangesobj.cxx b/sc/qa/extras/scnamedrangesobj.cxx
index 4a176b906cd8..4eb341a46b25 100644
--- a/sc/qa/extras/scnamedrangesobj.cxx
+++ b/sc/qa/extras/scnamedrangesobj.cxx
@@ -54,7 +54,7 @@ ScNamedRangesObj::ScNamedRangesObj()
uno::Reference< uno::XInterface > ScNamedRangesObj::init(sal_Int32 nSheet)
{
OUString aFileURL;
- createFileURL(OUString("ScNamedRangeObj.ods"), aFileURL);
+ createFileURL("ScNamedRangeObj.ods", aFileURL);
if(!mxComponent.is())
mxComponent = loadFromDesktop(aFileURL, "com.sun.star.sheet.SpreadsheetDocument");
CPPUNIT_ASSERT(mxComponent.is());
diff --git a/sc/qa/extras/scoutlineobj.cxx b/sc/qa/extras/scoutlineobj.cxx
index b275a57f2676..979cbbcc4443 100644
--- a/sc/qa/extras/scoutlineobj.cxx
+++ b/sc/qa/extras/scoutlineobj.cxx
@@ -57,7 +57,7 @@ uno::Reference< uno::XInterface > ScOutlineObj::init()
{
// get the test file
OUString aFileURL;
- createFileURL(OUString("ScOutlineObj.ods"), aFileURL);
+ createFileURL("ScOutlineObj.ods", aFileURL);
if(!mxComponent.is())
mxComponent = loadFromDesktop(aFileURL);
CPPUNIT_ASSERT_MESSAGE("Component not loaded",mxComponent.is());
diff --git a/sc/qa/extras/scstyleloaderobj.cxx b/sc/qa/extras/scstyleloaderobj.cxx
index 7e8d576bd2d8..000da4040e2e 100644
--- a/sc/qa/extras/scstyleloaderobj.cxx
+++ b/sc/qa/extras/scstyleloaderobj.cxx
@@ -93,7 +93,7 @@ uno::Reference< lang::XComponent > ScStyleLoaderObj::getSourceComponent(){
OUString ScStyleLoaderObj::getTestURL(){
OUString aFileURL;
- createFileURL(OUString("ScStyleLoaderObj.ods"), aFileURL);
+ createFileURL("ScStyleLoaderObj.ods", aFileURL);
return aFileURL;
}
diff --git a/sc/qa/extras/sctablesheetobj.cxx b/sc/qa/extras/sctablesheetobj.cxx
index f13efd2b845f..0d34f0b35e43 100644
--- a/sc/qa/extras/sctablesheetobj.cxx
+++ b/sc/qa/extras/sctablesheetobj.cxx
@@ -56,7 +56,7 @@ ScTableSheetObj::ScTableSheetObj():
uno::Reference< uno::XInterface > ScTableSheetObj::init()
{
OUString aFileURL;
- createFileURL(OUString("ScTableSheetObj.ods"), aFileURL);
+ createFileURL("ScTableSheetObj.ods", aFileURL);
if(!mxComponent.is())
mxComponent = loadFromDesktop(aFileURL, "com.sun.star.sheet.SpreadsheetDocument");
CPPUNIT_ASSERT(mxComponent.is());
diff --git a/sc/qa/extras/sctablesheetsobj.cxx b/sc/qa/extras/sctablesheetsobj.cxx
index 570b95765696..b062f271a049 100644
--- a/sc/qa/extras/sctablesheetsobj.cxx
+++ b/sc/qa/extras/sctablesheetsobj.cxx
@@ -80,7 +80,7 @@ uno::Reference< lang::XComponent > ScTableSheetsObj::loadFromDesktop(const OUStr
uno::Reference< uno::XInterface > ScTableSheetsObj::init()
{
OUString aFileURL;
- createFileURL(OUString("rangenamessrc.ods"), aFileURL);
+ createFileURL("rangenamessrc.ods", aFileURL);
if(!mxComponent.is())
mxComponent = loadFromDesktop(aFileURL);
CPPUNIT_ASSERT(mxComponent.is());