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 --- cui/source/customize/CustomNotebookbarGenerator.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'cui/source/customize') diff --git a/cui/source/customize/CustomNotebookbarGenerator.cxx b/cui/source/customize/CustomNotebookbarGenerator.cxx index 9bff37e428d7..a839667e7449 100644 --- a/cui/source/customize/CustomNotebookbarGenerator.cxx +++ b/cui/source/customize/CustomNotebookbarGenerator.cxx @@ -91,9 +91,7 @@ static OUString getAppNameRegistryPath() eApp = vcl::EnumContext::GetApplicationEnum(xModuleManager->identify(xFrame)); OUString sAppName(lcl_getAppName(eApp)); - OUStringBuffer sPath("org.openoffice.Office.UI.ToolbarMode/Applications/"); - sPath.append(sAppName); - return sPath.makeStringAndClear(); + return "org.openoffice.Office.UI.ToolbarMode/Applications/" + sAppName; } static OUString customizedUIPathBuffer() -- cgit