From 3ee177a14d8b816ef5b62500aeb54524c289e045 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 15 Oct 2019 20:24:10 +0200 Subject: loplugin:stringadd look through a couple more known-good methods Change-Id: Ifbdb3e41eae665f7dcaf5301aaba2b6e4662cf48 Reviewed-on: https://gerrit.libreoffice.org/80855 Tested-by: Jenkins Reviewed-by: Noel Grandin --- editeng/source/outliner/outliner.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'editeng') diff --git a/editeng/source/outliner/outliner.cxx b/editeng/source/outliner/outliner.cxx index 515a9bcebe02..c6116b3b9520 100644 --- a/editeng/source/outliner/outliner.cxx +++ b/editeng/source/outliner/outliner.cxx @@ -704,8 +704,8 @@ void Outliner::ImplSetLevelDependentStyleSheet( sal_Int32 nPara ) nDepth = 0; OUString aNewStyleSheetName( pStyle->GetName() ); - aNewStyleSheetName = aNewStyleSheetName.copy( 0, aNewStyleSheetName.getLength()-1 ); - aNewStyleSheetName += OUString::number( nDepth+1 ); + aNewStyleSheetName = aNewStyleSheetName.copy( 0, aNewStyleSheetName.getLength()-1 ) + + OUString::number( nDepth+1 ); SfxStyleSheet* pNewStyle = static_cast(GetStyleSheetPool()->Find( aNewStyleSheetName, pStyle->GetFamily() )); DBG_ASSERT( pNewStyle, "AutoStyleSheetName - Style not found!" ); if ( pNewStyle && ( pNewStyle != GetStyleSheet( nPara ) ) ) -- cgit