[Libreoffice-commits] core.git: svl/qa
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Fri Oct 5 16:02:49 UTC 2018
svl/qa/unit/svl.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 18c0d3c26baa2b61443baf14bcb4be46fcf194e3
Author: Eike Rathke <erack at redhat.com>
AuthorDate: Fri Oct 5 18:01:47 2018 +0200
Commit: Eike Rathke <erack at redhat.com>
CommitDate: Fri Oct 5 18:02:22 2018 +0200
OUString::fromUtf8() instead of createFromAscii()
So we can use UTF-8 input to test.
Change-Id: Ie56d43226c8cc8a5bf10317961fa0a91d8acfcf0
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);
}
}
}
More information about the Libreoffice-commits
mailing list