diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-08-28 22:47:02 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-08-29 11:44:44 +0000 |
commit | bdd60f1f5e0b995572321fd0865ccb8849d8ed76 (patch) | |
tree | 36fd199eded442f12c223a6b9830e5202c85855c /svl | |
parent | 2c10714426cc813c36aa82e4870b7b51c5c03050 (diff) |
Adapt loplugin:stringconstant to improved OUStringLiteral1
Change-Id: Ibc5128df8bcf8cb5f2f09551c0de6dfdb46bdee0
Reviewed-on: https://gerrit.libreoffice.org/28447
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'svl')
-rw-r--r-- | svl/qa/unit/svl.cxx | 8 | ||||
-rw-r--r-- | svl/source/misc/lngmisc.cxx | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/svl/qa/unit/svl.cxx b/svl/qa/unit/svl.cxx index d23620dc55f7..9a7cb261c441 100644 --- a/svl/qa/unit/svl.cxx +++ b/svl/qa/unit/svl.cxx @@ -1185,10 +1185,10 @@ void Test::testUserDefinedNumberFormats() } { // tdf#79399 tdf#101462 Native Number Formats sCode = "[NatNum5][$-0404]General\\ "; - sExpected = OUString(sal_Unicode(22777)) + // 壹 - OUString(sal_Unicode(20336)) + // 佰 - OUString(sal_Unicode(36019)) + // 貳 - OUString(sal_Unicode(25342)) + // 拾 + sExpected = OUStringLiteral1<22777>() + // 壹 + OUStringLiteral1<20336>() + // 佰 + OUStringLiteral1<36019>() + // 貳 + OUStringLiteral1<25342>() + // 拾 " "; checkPreviewString(aFormatter, sCode, 120, eLang, sExpected); sCode = "[DBNum2][$-0404]General\\ "; diff --git a/svl/source/misc/lngmisc.cxx b/svl/source/misc/lngmisc.cxx index 019cbb556c65..d0fe8b501dfe 100644 --- a/svl/source/misc/lngmisc.cxx +++ b/svl/source/misc/lngmisc.cxx @@ -38,8 +38,8 @@ namespace linguistic bool RemoveHyphens(OUString &rTxt) { sal_Int32 n = rTxt.getLength(); - rTxt = rTxt.replaceAll(OUString(SVT_SOFT_HYPHEN), ""); - rTxt = rTxt.replaceAll(OUString(SVT_HARD_HYPHEN), ""); + rTxt = rTxt.replaceAll(OUStringLiteral1<SVT_SOFT_HYPHEN>(), ""); + rTxt = rTxt.replaceAll(OUStringLiteral1<SVT_HARD_HYPHEN>(), ""); return n != rTxt.getLength(); } |