diff options
author | Eike Rathke <erack@redhat.com> | 2018-10-05 18:01:47 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2018-10-05 18:02:22 +0200 |
commit | 18c0d3c26baa2b61443baf14bcb4be46fcf194e3 (patch) | |
tree | f7e1b396aef2a97b51bb3274474b255a01b8306e /svl | |
parent | 0c86538173f9c96cfdb490e76ca399931b6fd7e4 (diff) |
OUString::fromUtf8() instead of createFromAscii()
So we can use UTF-8 input to test.
Change-Id: Ie56d43226c8cc8a5bf10317961fa0a91d8acfcf0
Diffstat (limited to 'svl')
-rw-r--r-- | svl/qa/unit/svl.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/svl/qa/unit/svl.cxx b/svl/qa/unit/svl.cxx index 579a336b692c..daf5fa2a763e 100644 --- a/svl/qa/unit/svl.cxx +++ b/svl/qa/unit/svl.cxx @@ -1152,7 +1152,7 @@ void checkSpecificNumberFormats( SvNumberFormatter& rFormatter, { sal_uInt32 nIndex = 0; double fNumber = 0; - OUString aString( OUString::createFromAscii( rVec[i].mpInput)); + OUString aString( OUString::fromUtf8( rVec[i].mpInput)); const bool bIsNumber = rFormatter.IsNumberFormat( aString, nIndex, fNumber); CPPUNIT_ASSERT_EQUAL_MESSAGE( OString( OString(pName) + " " + OString::number(i) + (rVec[i].mbNumber ? " not recognized: " : " should not be recognized: ") + @@ -1164,7 +1164,7 @@ void checkSpecificNumberFormats( SvNumberFormatter& rFormatter, Color* pColor; rFormatter.GetOutputString( fNumber, nIndex, aString, &pColor); CPPUNIT_ASSERT_EQUAL_MESSAGE( OString( OString(pName) + " " + OString::number(i) + " mismatch").getStr(), - OUString::createFromAscii( rVec[i].mpOutput), aString); + OUString::fromUtf8( rVec[i].mpOutput), aString); } } } |