summaryrefslogtreecommitdiff
path: root/sc/qa
diff options
context:
space:
mode:
Diffstat (limited to 'sc/qa')
-rw-r--r--sc/qa/unit/ucalc.cxx3
-rw-r--r--sc/qa/unit/ucalc_formula.cxx3
2 files changed, 2 insertions, 4 deletions
diff --git a/sc/qa/unit/ucalc.cxx b/sc/qa/unit/ucalc.cxx
index e697dc700aad..e3fdc96c32d4 100644
--- a/sc/qa/unit/ucalc.cxx
+++ b/sc/qa/unit/ucalc.cxx
@@ -1619,8 +1619,7 @@ void Test::testInsertNameList()
ScAddress aExprPos = aPos;
aExprPos.IncCol();
OUString aExpr = m_pDoc->GetString(aExprPos);
- OUString aExpected = "=";
- aExpected += OUString::createFromAscii(aNames[i].mpExpr);
+ OUString aExpected = "=" + OUString::createFromAscii(aNames[i].mpExpr);
CPPUNIT_ASSERT_EQUAL(aExpected, aExpr);
}
diff --git a/sc/qa/unit/ucalc_formula.cxx b/sc/qa/unit/ucalc_formula.cxx
index 96c97c5793b9..66a83d4618aa 100644
--- a/sc/qa/unit/ucalc_formula.cxx
+++ b/sc/qa/unit/ucalc_formula.cxx
@@ -284,8 +284,7 @@ void Test::testFormulaParseReference()
for (size_t i = 0; i < SAL_N_ELEMENTS(aChecks); ++i)
{
// Use the 'Dummy' sheet for this.
- OUString aInput("=");
- aInput += OUString::createFromAscii(aChecks[i]);
+ OUString aInput = "=" + OUString::createFromAscii(aChecks[i]);
m_pDoc->SetString(ScAddress(0,0,0), aInput);
ASSERT_FORMULA_EQUAL(*m_pDoc, ScAddress(0,0,0), aChecks[i], "Wrong formula");
}