diff options
Diffstat (limited to 'editeng/source/outliner/outliner.cxx')
-rw-r--r-- | editeng/source/outliner/outliner.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/editeng/source/outliner/outliner.cxx b/editeng/source/outliner/outliner.cxx index 294f000d3796..374fa86025f9 100644 --- a/editeng/source/outliner/outliner.cxx +++ b/editeng/source/outliner/outliner.cxx @@ -1638,15 +1638,15 @@ EBulletInfo Outliner::GetBulletInfo( sal_Int32 nPara ) OUString Outliner::GetText( Paragraph const * pParagraph, sal_Int32 nCount ) const { - OUString aText; + OUStringBuffer aText; sal_Int32 nStartPara = pParaList->GetAbsPos( pParagraph ); for ( sal_Int32 n = 0; n < nCount; n++ ) { - aText += pEditEngine->GetText( nStartPara + n ); + aText.append(pEditEngine->GetText( nStartPara + n )); if ( (n+1) < nCount ) - aText += "\n"; + aText.append("\n"); } - return aText; + return aText.makeStringAndClear(); } void Outliner::Remove( Paragraph const * pPara, sal_Int32 nParaCount ) |