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/source') 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 .3 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2016-10-31 10:28:18 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2016-10-31 10:03:00 +0000
commit04bfdc0a82c306dbe16e7d79e78f2b1c8fd05475 (patch)
tree317a0e7f0e09b5160df8f965c67c4b0036597c1b /vbahelper
parenteaf32cd43c4d45db6c3b284d53169c81f522744e (diff)
loplugin:oncevar in vbahelper..writerfilter