diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2020-11-10 14:41:56 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-11-11 06:33:40 +0100 |
commit | cc1e6ee2dd4609c27cb7a09aa47a779592a3e22c (patch) | |
tree | e0155415dcdbb86078d47100d088689542b98a66 /l10ntools | |
parent | dfb2e07e32694c220e791574b7a6c05f5648c0c2 (diff) |
disable O(U)String::concat for internal code
in favour of the more widely used, and better optimised, operator+
Change-Id: I6a1b37e0f3d253af1f7a0892443f59b620efea63
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105523
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'l10ntools')
-rw-r--r-- | l10ntools/source/localize.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/l10ntools/source/localize.cxx b/l10ntools/source/localize.cxx index 35fc924a0813..e069ba6f5a5c 100644 --- a/l10ntools/source/localize.cxx +++ b/l10ntools/source/localize.cxx @@ -211,7 +211,7 @@ bool handleFile(const OString& rProject, const OUString& rUrl, const OString& rP if (commands[i].executable == "uiex" || commands[i].executable == "hrcex") sOutPath = gDestRoot + "/" + rProject + "/messages.pot"; else - sOutPath = rPotDir.concat(".pot"); + sOutPath = rPotDir + ".pot"; if (!fileExists(sOutPath)) InitPoFile(rProject, sInPath, rPotDir, sOutPath); @@ -363,11 +363,11 @@ void handleDirectory( { case 0: // a root directory if (stat.getFileType() == osl::FileStatus::Directory && includeProject(sDirName)) - aSubDirs[stat.getFileURL()][sDirName] = rPotDir.concat("/").concat(sDirName); + aSubDirs[stat.getFileURL()][sDirName] = rPotDir + "/" + sDirName; break; default: if (stat.getFileType() == osl::FileStatus::Directory) - aSubDirs[stat.getFileURL()][rProject] = rPotDir.concat("/").concat(sDirName); + aSubDirs[stat.getFileURL()][rProject] = rPotDir + "/" + sDirName; else aFileNames.push_back(stat.getFileURL()); break; |