From cc1e6ee2dd4609c27cb7a09aa47a779592a3e22c Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 10 Nov 2020 14:41:56 +0200 Subject: 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 --- l10ntools/source/localize.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'l10ntools') 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; -- cgit v1.2.3