From 637cceeefba0b0e2e09ac734bb0327364e8ddd25 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 24 Mar 2023 10:09:16 +0200 Subject: 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 --- configmgr/source/data.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'configmgr') 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) { -- cgit v1.2.3