summaryrefslogtreecommitdiff
path: root/l10ntools
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2020-12-08 13:53:20 +0100
committerStephan Bergmann <sbergman@redhat.com>2020-12-08 15:35:54 +0100
commitc13909b415d701b4618d645b98d314974a25ee57 (patch)
treea964ba1439f0c178d03a1e6ac4c2e5e18dbdd637 /l10ntools
parenta6b85de6b7db0b034cb14c6324ddf5d27dcda1f5 (diff)
Use OString::Concat(...) + ... instead of ... + OStringLiteral(...)
...in some places Change-Id: Ia1d6135c89bcc18d436d8c0d353ca93195dda432 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107412 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'l10ntools')
-rw-r--r--l10ntools/source/pocheck.cxx20
1 files changed, 10 insertions, 10 deletions
diff --git a/l10ntools/source/pocheck.cxx b/l10ntools/source/pocheck.cxx
index 6f3252451dfa..1e7c951863be 100644
--- a/l10ntools/source/pocheck.cxx
+++ b/l10ntools/source/pocheck.cxx
@@ -22,8 +22,8 @@ static void checkStyleNames(const OString& aLanguage)
std::map<OString,sal_uInt16> aLocalizedNumStyleNames;
std::vector<PoEntry> repeatedEntries;
- OString aPoPath = getenv("SRC_ROOT") +
- OStringLiteral("/translations/source/") +
+ OString aPoPath = OString::Concat(getenv("SRC_ROOT")) +
+ "/translations/source/" +
aLanguage + "/sw/messages.po";
PoIfstream aPoInput;
aPoInput.open(aPoPath);
@@ -144,8 +144,8 @@ static void checkFunctionNames(const OString& aLanguage)
OString aPoPaths[2];
OUString aPoPathURL;
- aPoPaths[0] = getenv("SRC_ROOT") +
- OStringLiteral("/translations/source/") +
+ aPoPaths[0] = OString::Concat(getenv("SRC_ROOT")) +
+ "/translations/source/" +
aLanguage +
"/formula/messages.po";
PoIfstream aPoInput;
@@ -180,8 +180,8 @@ static void checkFunctionNames(const OString& aLanguage)
}
aPoInput.close();
- aPoPaths[1] = getenv("SRC_ROOT") +
- OStringLiteral("/translations/source/") +
+ aPoPaths[1] = OString::Concat(getenv("SRC_ROOT")) +
+ "/translations/source/" +
aLanguage +
"/scaddins/messages.po";
aPoInput.open(aPoPaths[1]);
@@ -290,8 +290,8 @@ static void checkFunctionNames(const OString& aLanguage)
// with '|', too.
static void checkVerticalBar(const OString& aLanguage)
{
- OString aPoPath = getenv("SRC_ROOT") +
- OStringLiteral("/translations/source/") +
+ OString aPoPath = OString::Concat(getenv("SRC_ROOT")) +
+ "/translations/source/" +
aLanguage +
"/instsetoo_native/inc_openoffice/windows/msi_languages.po";
PoIfstream aPoInput;
@@ -343,8 +343,8 @@ static void checkVerticalBar(const OString& aLanguage)
// must not contain spaces
static void checkMathSymbolNames(const OString& aLanguage)
{
- OString aPoPath = getenv("SRC_ROOT") +
- OStringLiteral("/translations/source/") +
+ OString aPoPath = OString::Concat(getenv("SRC_ROOT")) +
+ "/translations/source/" +
aLanguage +
"/starmath/messages.po";
PoIfstream aPoInput;