summaryrefslogtreecommitdiff
path: root/configmgr
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2023-03-24 10:09:16 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2023-03-24 15:29:18 +0000
commit637cceeefba0b0e2e09ac734bb0327364e8ddd25 (patch)
treeba321c814d9806921cbc23c293706cc54c8b82df /configmgr
parent4d90e2696dd4358b3d02bbbae90160c92d36263f (diff)
loplugin:stringadd in c*
after my patch to merge the bufferadd loplugin into stringadd Change-Id: I66f4ce2fd87c1e12eefb14406e0e17212f68ceff Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149497 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'configmgr')
-rw-r--r--configmgr/source/data.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/configmgr/source/data.cxx b/configmgr/source/data.cxx
index f173ee1556fb..24987d65c44b 100644
--- a/configmgr/source/data.cxx
+++ b/configmgr/source/data.cxx
@@ -85,9 +85,8 @@ OUString Data::createSegment(
return name;
}
OUStringBuffer buf(128);
- buf.append(templateName);
- //TODO: verify template name contains no bad chars?
- buf.append("['");
+ //TODO: verify template name contains no bad chars?
+ buf.append(OUString::Concat(templateName) + "['");
for (sal_Int32 i = 0; i < name.getLength(); ++i) {
sal_Unicode c = name[i];
switch (c) {