From f13c6ad5f020a196a0e3aa6f28bda3dc185d465b Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 14 Oct 2019 14:27:57 +0200 Subject: new loplugin:bufferadd look for OUStringBuffer append sequences that can be turned into creating an OUString with + operations Change-Id: Ica840dc096000307b4a105fb4d9ec7588a15ade6 Reviewed-on: https://gerrit.libreoffice.org/80809 Tested-by: Jenkins Reviewed-by: Noel Grandin --- configmgr/source/data.cxx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'configmgr/source') diff --git a/configmgr/source/data.cxx b/configmgr/source/data.cxx index cf6b500cc567..7ff344650ebc 100644 --- a/configmgr/source/data.cxx +++ b/configmgr/source/data.cxx @@ -154,10 +154,7 @@ OUString Data::fullTemplateName( "bad component/name pair containing colon " + component + "/" + name); } - OUStringBuffer buf(component); - buf.append(':'); - buf.append(name); - return buf.makeStringAndClear(); + return component + ":" + name; } bool Data::equalTemplateNames( -- cgit