summaryrefslogtreecommitdiff
path: root/chart2/source/tools/TitleHelper.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'chart2/source/tools/TitleHelper.cxx')
-rw-r--r--chart2/source/tools/TitleHelper.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/chart2/source/tools/TitleHelper.cxx b/chart2/source/tools/TitleHelper.cxx
index c384d03b08e7..3cdddbbeeb44 100644
--- a/chart2/source/tools/TitleHelper.cxx
+++ b/chart2/source/tools/TitleHelper.cxx
@@ -305,9 +305,9 @@ OUString TitleHelper::getCompleteString( const uno::Reference< XTitle >& xTitle
if(!xTitle.is())
return OUString();
OUStringBuffer aRet;
- uno::Sequence< uno::Reference< XFormattedString > > aStringList = xTitle->getText();
- for( sal_Int32 nN=0; nN<aStringList.getLength();nN++ )
- aRet.append( aStringList[nN]->getString() );
+ const uno::Sequence< uno::Reference< XFormattedString > > aStringList = xTitle->getText();
+ for( uno::Reference< XFormattedString > const & formattedStr : aStringList )
+ aRet.append( formattedStr->getString() );
return aRet.makeStringAndClear();
}