diff options
Diffstat (limited to 'sc/qa/unit/ucalc_formula.cxx')
-rw-r--r-- | sc/qa/unit/ucalc_formula.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/qa/unit/ucalc_formula.cxx b/sc/qa/unit/ucalc_formula.cxx index 55749266ffb5..96c97c5793b9 100644 --- a/sc/qa/unit/ucalc_formula.cxx +++ b/sc/qa/unit/ucalc_formula.cxx @@ -159,7 +159,7 @@ void Test::testFormulaCreateStringFromTokens() bool bInserted = pDBs->getNamedDBs().insert(std::move(pData)); CPPUNIT_ASSERT_MESSAGE( OString( - "Failed to insert \"" + OString(aDBs[i].pName) + "\"").getStr(), + OStringLiteral("Failed to insert \"") + aDBs[i].pName + "\"").getStr(), bInserted); } @@ -6976,7 +6976,7 @@ void Test::testFuncTableRef() ScAddress(2,4,0), ScRangeData::Type::Name, formula::FormulaGrammar::GRAM_NATIVE); bool bInserted = pGlobalNames->insert(pName); CPPUNIT_ASSERT_MESSAGE( - OString("Failed to insert named expression "+ OString(aNames[i].pName) +".").getStr(), bInserted); + OString(OStringLiteral("Failed to insert named expression ") + aNames[i].pName +".").getStr(), bInserted); } } @@ -7150,7 +7150,7 @@ void Test::testFuncTableRef() ScAddress(6,12,0), ScRangeData::Type::Name, formula::FormulaGrammar::GRAM_NATIVE); bool bInserted = pGlobalNames->insert(pName); CPPUNIT_ASSERT_MESSAGE( - OString("Failed to insert named expression "+ OString(aHlNames[i].pName) +".").getStr(), bInserted); + OString(OStringLiteral("Failed to insert named expression ") + aHlNames[i].pName +".").getStr(), bInserted); } } |