From a15329d53f20bf913fe63c05fc7c53e17bd68e97 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 28 Mar 2023 20:25:10 +0200 Subject: loplugin:stringadd in svx when applying my upcoming patch to also consider O[U]StringBuffer Change-Id: I043885ed3120ff6f4262f339c69f15e2b2d4a85c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149653 Tested-by: Jenkins Reviewed-by: Noel Grandin --- svx/source/fmcomp/gridcell.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'svx/source/fmcomp/gridcell.cxx') diff --git a/svx/source/fmcomp/gridcell.cxx b/svx/source/fmcomp/gridcell.cxx index debea567ada5..2bf339a19135 100644 --- a/svx/source/fmcomp/gridcell.cxx +++ b/svx/source/fmcomp/gridcell.cxx @@ -3092,12 +3092,12 @@ void DbFilterField::Update() Reference< XDatabaseMetaData > xMeta = xConnection->getMetaData(); OUString aQuote(xMeta->getIdentifierQuoteString()); - OUStringBuffer aStatement("SELECT DISTINCT "); - aStatement.append(quoteName(aQuote, aName)); + OUStringBuffer aStatement("SELECT DISTINCT " + + quoteName(aQuote, aName)); if (!aFieldName.isEmpty() && aName != aFieldName) { - aStatement.append(" AS "); - aStatement.append(quoteName(aQuote, aFieldName)); + aStatement.append(" AS " + + quoteName(aQuote, aFieldName)); } aStatement.append(" FROM "); -- cgit