diff options
author | August Sodora <augsod@gmail.com> | 2011-11-28 21:44:30 -0500 |
---|---|---|
committer | Thorsten Behrens <tbehrens@suse.com> | 2011-12-01 11:10:28 +0100 |
commit | 443a7229f96806e6bbece775cc7cd643e1c4a042 (patch) | |
tree | c1753b0704662d7d2730abe26a44c3993f0225dd /chart2 | |
parent | 549f928863d0c1625f0322f62bfdda827063725e (diff) |
Remove uses of charAt
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/source/tools/TitleHelper.cxx | 2 | ||||
-rw-r--r-- | chart2/source/view/main/ShapeFactory.cxx | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/chart2/source/tools/TitleHelper.cxx b/chart2/source/tools/TitleHelper.cxx index 09a4b1822c6d..7a7a6ae585b2 100644 --- a/chart2/source/tools/TitleHelper.cxx +++ b/chart2/source/tools/TitleHelper.cxx @@ -285,7 +285,7 @@ void TitleHelper::setCompleteString( const rtl::OUString& rNewText sal_Int32 nLen = rNewText.getLength(); for( sal_Int32 nPos = 0; nPos < nLen; ++nPos ) { - sal_Unicode aChar = aSource.charAt( nPos ); + sal_Unicode aChar = aSource[nPos]; if( aChar != '\n' ) { aUnstackedStr.append( aChar ); diff --git a/chart2/source/view/main/ShapeFactory.cxx b/chart2/source/view/main/ShapeFactory.cxx index 40f25366eff3..e6ba468850cd 100644 --- a/chart2/source/view/main/ShapeFactory.cxx +++ b/chart2/source/view/main/ShapeFactory.cxx @@ -2245,7 +2245,6 @@ rtl::OUString ShapeFactory::getStackedString( const rtl::OUString& rString, bool return rString; rtl::OUStringBuffer aStackStr; - rtl::OUStringBuffer aSource(rString); //add a newline after each letter //as we do not no letters here add a newline after each char @@ -2253,7 +2252,7 @@ rtl::OUString ShapeFactory::getStackedString( const rtl::OUString& rString, bool { if( nPosSrc ) aStackStr.append( sal_Unicode('\r') ); - aStackStr.append( aSource.charAt( nPosSrc ) ); + aStackStr.append(rString[nPosSrc]); } return aStackStr.makeStringAndClear(); } |