summaryrefslogtreecommitdiff
path: root/unotools
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2019-10-19 13:24:01 +0200
committerStephan Bergmann <sbergman@redhat.com>2019-10-19 15:36:52 +0200
commitac2c1fb821b45f2382a5104b4d98dc08061ae938 (patch)
treebcc57c5cf1a9853fffd9792205cbe05aa07a1863 /unotools
parent4444d5dbe7dba90ccfb0a9eeed36be0abfdd1854 (diff)
Replace some uses of OUStringChar with string literals
Change-Id: I763f9a3f57efcd47643ca4651e2454e95c6921c9 Reviewed-on: https://gerrit.libreoffice.org/81127 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'unotools')
-rw-r--r--unotools/source/i18n/resmgr.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/unotools/source/i18n/resmgr.cxx b/unotools/source/i18n/resmgr.cxx
index 0f58039509fb..47069489aa41 100644
--- a/unotools/source/i18n/resmgr.cxx
+++ b/unotools/source/i18n/resmgr.cxx
@@ -196,7 +196,7 @@ namespace Translate
if (std::use_facet<boost::locale::info>(loc).language() == "qtz")
{
OString sKeyId(genKeyId(OString(pContextAndId).replace('\004', '|')));
- return OUString::fromUtf8(sKeyId) + OUStringChar(0x2016) + createFromUtf8(pId, strlen(pId));
+ return OUString::fromUtf8(sKeyId) + u"\u2016" + createFromUtf8(pId, strlen(pId));
}
//otherwise translate it
@@ -230,7 +230,7 @@ namespace Translate
{
OString sKeyId(genKeyId(aContextIdId[0] + "|" + aContextIdId[1]));
int nForm = n == 0 ? 1 : 2;
- return OUString::fromUtf8(sKeyId) + OUStringChar(0x2016) + createFromUtf8(aContextIdId[nForm].getStr(), aContextIdId[nForm].getLength());
+ return OUString::fromUtf8(sKeyId) + u"\u2016" + createFromUtf8(aContextIdId[nForm].getStr(), aContextIdId[nForm].getLength());
}
//otherwise translate it