summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-08-06 10:55:58 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-08-13 08:16:03 +0200
commit3457da6abe0fd03efd19442e9790fbd1aa04c160 (patch)
treea7a2d5b51839b200e7cda79af863dce7a04d3a10 /test
parent47196637a41ddfc9a8707771b1b9f482fd72c3b6 (diff)
loplugin:stringstatic also look for local statics
Add some API to O*StringLiteral, to make it easier to use in some places that were using O*String Change-Id: I1fb93bd47ac2065c9220d509aad3f4320326d99e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100270 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'test')
-rw-r--r--test/source/sheet/xsheetoutline.cxx22
1 files changed, 10 insertions, 12 deletions
diff --git a/test/source/sheet/xsheetoutline.cxx b/test/source/sheet/xsheetoutline.cxx
index 4ee517b09e52..82b690605b07 100644
--- a/test/source/sheet/xsheetoutline.cxx
+++ b/test/source/sheet/xsheetoutline.cxx
@@ -28,15 +28,13 @@ using namespace css::uno;
namespace apitest {
-const OUString colLevel1 = "OutlineSheet.A1:Z1";
-const OUString colLevel2 = "OutlineSheet.C1:W1";
-const OUString colLevel3 = "OutlineSheet.E1:U1";
-const OUString colLevel4 = "OutlineSheet.G1:S1";
+const OUStringLiteral colLevel1 = "OutlineSheet.A1:Z1";
+const OUStringLiteral colLevel2 = "OutlineSheet.C1:W1";
+const OUStringLiteral colLevel3 = "OutlineSheet.E1:U1";
+const OUStringLiteral colLevel4 = "OutlineSheet.G1:S1";
-const OUString rowLevel1 = "OutlineSheet.A1:A30";
-const OUString rowLevel2 = "OutlineSheet.A3:A27";
-const OUString rowLevel3 = "OutlineSheet.A5:A24";
-const OUString rowLevel4 = "OutlineSheet.A7:A21";
+const OUStringLiteral rowLevel1 = "OutlineSheet.A1:A30";
+const OUStringLiteral rowLevel2 = "OutlineSheet.A3:A27";
static OUString getVisibleAdress(
uno::Reference<sheet::XSpreadsheet> const& xSheet,
@@ -104,14 +102,14 @@ void XSheetOutline::testShowDetail()
aSheetOutline->showDetail(aLevelRangeAddress);
CPPUNIT_ASSERT_EQUAL_MESSAGE("Row level 2 still hidden",
- getVisibleAdress(aSheet, rowLevel2), rowLevel2);
+ getVisibleAdress(aSheet, rowLevel2), OUString(rowLevel2));
// Column Level 2
aLevelRangeAddress = getAddressFromRangeString(aSheet, colLevel2);
aSheetOutline->showDetail(aLevelRangeAddress);
CPPUNIT_ASSERT_EQUAL_MESSAGE("Column level 2 still hidden",
- getVisibleAdress(aSheet, colLevel2), colLevel2);
+ getVisibleAdress(aSheet, colLevel2), OUString(colLevel2));
}
@@ -256,8 +254,8 @@ void XSheetOutline::testClearOutline()
aLevelRangeAddress = getAddressFromRangeString(aSheet, rowLevel1);
aSheetOutline->hideDetail(aLevelRangeAddress);
- CPPUNIT_ASSERT_EQUAL_MESSAGE("testClearOutline Columns are hidden after clear", getVisibleAdress(aSheet, colLevel1), colLevel1);
- CPPUNIT_ASSERT_EQUAL_MESSAGE("testClearOutline Rows are hidden after clear", getVisibleAdress(aSheet, rowLevel1), rowLevel1);
+ CPPUNIT_ASSERT_EQUAL_MESSAGE("testClearOutline Columns are hidden after clear", getVisibleAdress(aSheet, colLevel1), OUString(colLevel1));
+ CPPUNIT_ASSERT_EQUAL_MESSAGE("testClearOutline Rows are hidden after clear", getVisibleAdress(aSheet, rowLevel1), OUString(rowLevel1));
}