diff options
author | Kohei Yoshida <kyoshida@novell.com> | 2011-02-24 19:47:04 -0500 |
---|---|---|
committer | Kohei Yoshida <kyoshida@novell.com> | 2011-02-24 19:47:04 -0500 |
commit | 54fcbd8c70130e03ad6ebc51e28897fa8e238583 (patch) | |
tree | 9ce8d4ae4200cf41d459dd931eefba74d33a2e7a /svl/qa | |
parent | 65493885df5c5d6dc1ade2f311f01e74d270fa57 (diff) |
Use OUString instead of String in the unit test code.
Added another method PutEntry() to allow rtl::OUString to be used.
We'll keep this until UniString gets totally eradicated.
Diffstat (limited to 'svl/qa')
-rw-r--r-- | svl/qa/unit/svl.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/svl/qa/unit/svl.cxx b/svl/qa/unit/svl.cxx index 4e16b4990b4c..e88efffea61c 100644 --- a/svl/qa/unit/svl.cxx +++ b/svl/qa/unit/svl.cxx @@ -264,14 +264,14 @@ void Test::testNumberFormat() xub_StrLen nPos; short nType = NUMBERFORMAT_DEFINED; sal_uInt32 nKey; - String aCode; - aCode = String(RTL_CONSTASCII_USTRINGPARAM("[$-1070000]d/mm/yyyy;@")); // Thai date format (implicit locale). + OUString aCode; + aCode = OUString(RTL_CONSTASCII_USTRINGPARAM("[$-1070000]d/mm/yyyy;@")); // Thai date format (implicit locale). if (!aFormatter.PutEntry(aCode, nPos, nType, nKey)) { CPPUNIT_ASSERT_MESSAGE("failed to insert format code '[$-1070000]d/mm/yyyy;@'", false); } - aCode = String(RTL_CONSTASCII_USTRINGPARAM("[$-107041E]d/mm/yyyy;@")); // Thai date format (explicit locale) + aCode = OUString(RTL_CONSTASCII_USTRINGPARAM("[$-107041E]d/mm/yyyy;@")); // Thai date format (explicit locale) if (!aFormatter.PutEntry(aCode, nPos, nType, nKey)) { CPPUNIT_ASSERT_MESSAGE("failed to insert format code '[$-1070000]d/mm/yyyy;@'", false); |