summaryrefslogtreecommitdiff
path: root/sc/qa
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-08-17 10:23:50 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-08-17 10:23:50 +0200
commita82af43b526c9eca38f74f51d9af0c99c62f8121 (patch)
tree0bd6a602e03ba28ea4c7414b59c40e15f7feba8e /sc/qa
parenta70f9fffe7d2751ca0401c43c92e7fb8dea571d4 (diff)
Clean up uses of OUString::fromUtf8 around string literals
Change-Id: I9a2990e49c95a01ce505f13408be8c19db1cf5d1
Diffstat (limited to 'sc/qa')
-rw-r--r--sc/qa/unit/tiledrendering/tiledrendering.cxx24
1 files changed, 12 insertions, 12 deletions
diff --git a/sc/qa/unit/tiledrendering/tiledrendering.cxx b/sc/qa/unit/tiledrendering/tiledrendering.cxx
index f966627ca1c7..531171e4f23a 100644
--- a/sc/qa/unit/tiledrendering/tiledrendering.cxx
+++ b/sc/qa/unit/tiledrendering/tiledrendering.cxx
@@ -227,9 +227,9 @@ void ScTiledRenderingTest::testRowColumnSelections()
CPPUNIT_ASSERT_EQUAL(aExpected, aResult);
// Select the 10th row with shift modifier
- aArgs[0].Name = OUString::fromUtf8("Row");
+ aArgs[0].Name = "Row";
aArgs[0].Value <<= static_cast<sal_Int32>(10 - 1);
- aArgs[1].Name = OUString::fromUtf8("Modifier");
+ aArgs[1].Name = "Modifier";
aArgs[1].Value <<= KEY_SHIFT;
comphelper::dispatchCommand(".uno:SelectRow", aArgs);
@@ -239,9 +239,9 @@ void ScTiledRenderingTest::testRowColumnSelections()
CPPUNIT_ASSERT_EQUAL(aExpected, aResult);
// Select the 10th row with ctrl modifier
- aArgs[0].Name = OUString::fromUtf8("Row");
+ aArgs[0].Name = "Row";
aArgs[0].Value <<= static_cast<sal_Int32>(13 - 1);
- aArgs[1].Name = OUString::fromUtf8("Modifier");
+ aArgs[1].Name = "Modifier";
aArgs[1].Value <<= KEY_MOD1;
comphelper::dispatchCommand(".uno:SelectRow", aArgs);
@@ -253,9 +253,9 @@ void ScTiledRenderingTest::testRowColumnSelections()
// TODO check that we really selected what we wanted here
// Select Column 5 with ctrl modifier
- aArgs[0].Name = OUString::fromUtf8("Col");
+ aArgs[0].Name = "Col";
aArgs[0].Value <<= static_cast<sal_Int32>(5 - 1);
- aArgs[1].Name = OUString::fromUtf8("Modifier");
+ aArgs[1].Name = "Modifier";
aArgs[1].Value <<= KEY_MOD1;
comphelper::dispatchCommand(".uno:SelectColumn", aArgs);
@@ -268,23 +268,23 @@ void ScTiledRenderingTest::testRowColumnSelections()
// Test for deselection of already selected rows
// First Deselect Row 13 because copy doesn't work for multiple selections
- aArgs[0].Name = OUString::fromUtf8("Row");
+ aArgs[0].Name = "Row";
aArgs[0].Value <<= static_cast<sal_Int32>(13 - 1);
- aArgs[1].Name = OUString::fromUtf8("Modifier");
+ aArgs[1].Name = "Modifier";
aArgs[1].Value <<= KEY_MOD1;
comphelper::dispatchCommand(".uno:SelectRow", aArgs);
// Deselect row 10
- aArgs[0].Name = OUString::fromUtf8("Row");
+ aArgs[0].Name = "Row";
aArgs[0].Value <<= static_cast<sal_Int32>(10 - 1);
- aArgs[1].Name = OUString::fromUtf8("Modifier");
+ aArgs[1].Name = "Modifier";
aArgs[1].Value <<= KEY_MOD1;
comphelper::dispatchCommand(".uno:SelectRow", aArgs);
// Click at row 6 holding shift
- aArgs[0].Name = OUString::fromUtf8("Row");
+ aArgs[0].Name = "Row";
aArgs[0].Value <<= static_cast<sal_Int32>(6 - 1);
- aArgs[1].Name = OUString::fromUtf8("Modifier");
+ aArgs[1].Name = "Modifier";
aArgs[1].Value <<= KEY_SHIFT;
comphelper::dispatchCommand(".uno:SelectRow", aArgs);