From 3a0c5b782001fc398740b46f2adc9e07055505d6 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 24 Mar 2023 19:12:58 +0200 Subject: loplugin:stringadd in editeng..framework after my patch to merge the bufferadd loplugin into stringadd Change-Id: Ieac16a01fde6467a2f6fe47864069304a3c44e47 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149552 Tested-by: Jenkins Reviewed-by: Noel Grandin --- extensions/source/logging/csvformatter.cxx | 9 +++------ extensions/source/logging/plaintextformatter.cxx | 9 +++------ extensions/source/propctrlr/eventhandler.cxx | 6 ++---- extensions/source/propctrlr/formcomponenthandler.cxx | 9 +++------ extensions/source/propctrlr/standardcontrol.cxx | 4 +--- extensions/source/propctrlr/stringrepresentation.cxx | 3 +-- 6 files changed, 13 insertions(+), 27 deletions(-) (limited to 'extensions') diff --git a/extensions/source/logging/csvformatter.cxx b/extensions/source/logging/csvformatter.cxx index ddbf3a9a2c36..c495bbe1ea95 100644 --- a/extensions/source/logging/csvformatter.cxx +++ b/extensions/source/logging/csvformatter.cxx @@ -202,8 +202,7 @@ namespace logging sal_Int32 columns = m_Columnnames.getLength(); for(sal_Int32 i=0; i xSubQueries(_xQueryNames->getByName(rQueryName),UNO_QUERY); diff --git a/extensions/source/propctrlr/standardcontrol.cxx b/extensions/source/propctrlr/standardcontrol.cxx index 95b4143c76b8..9468ecc56745 100644 --- a/extensions/source/propctrlr/standardcontrol.cxx +++ b/extensions/source/propctrlr/standardcontrol.cxx @@ -724,9 +724,7 @@ namespace pcr { if ( strings != _rStrings.begin() ) aComposed.append( ';' ); - aComposed.append( '\"' ); - aComposed.append( *strings ); - aComposed.append( '\"' ); + aComposed.append( "\"" + *strings + "\"" ); } return aComposed.makeStringAndClear(); } diff --git a/extensions/source/propctrlr/stringrepresentation.cxx b/extensions/source/propctrlr/stringrepresentation.cxx index 30dbde907733..6f40c09c9d84 100644 --- a/extensions/source/propctrlr/stringrepresentation.cxx +++ b/extensions/source/propctrlr/stringrepresentation.cxx @@ -329,8 +329,7 @@ namespace // (separated by a line break) for (const auto& rElement : _rElements) { - sCompose.append(OUString(_rTransformer(rElement))); - sCompose.append("\n"); + sCompose.append(OUString(_rTransformer(rElement)) + "\n"); } sCompose.stripEnd('\n'); -- cgit