From 46c2a3688c9ee7f558f75cbe856c26c4b8849b7e Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 30 Sep 2019 15:12:52 +0200 Subject: loplugin:stringadd n sfx2..svl Change-Id: Iaf1bbe37449d4e0cfa817909d56d4bffe1e5a184 Reviewed-on: https://gerrit.libreoffice.org/79893 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sfx2/source/bastyp/helper.cxx | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'sfx2/source/bastyp') diff --git a/sfx2/source/bastyp/helper.cxx b/sfx2/source/bastyp/helper.cxx index 0976c8f80f28..fec0cd321c8b 100644 --- a/sfx2/source/bastyp/helper.cxx +++ b/sfx2/source/bastyp/helper.cxx @@ -93,10 +93,10 @@ std::vector SfxContentHelper::GetResultSet( const OUString& rURL ) { OUString aTitle( xRow->getString(1) ); OUString aType( xRow->getString(2) ); - OUString aRow = aTitle; - aRow += "\t"; - aRow += aType; - aRow += "\t"; + OUString aRow = aTitle + + "\t" + + aType + + "\t"; aRow += xContentAccess->queryContentIdentifierString(); aList.push_back( aRow ); } @@ -156,8 +156,7 @@ std::vector< OUString > SfxContentHelper::GetHelpTreeViewContents( const OUStrin { OUString aTitle( xRow->getString(1) ); bool bFolder = xRow->getBoolean(2); - OUString aRow = aTitle; - aRow += "\t"; + OUString aRow = aTitle + "\t"; aRow += xContentAccess->queryContentIdentifierString(); aRow += "\t"; aRow += bFolder ? OUString("1") : OUString("0"); -- cgit v1.2.3