From a7674482254ee996b1c4fee60f3064778be369aa Mon Sep 17 00:00:00 2001 From: Christophe JAILLET Date: Thu, 12 Jul 2012 22:10:17 +0200 Subject: Search for char instead of 1 char long string, when possible. It is faster and even avoid memory allocation somtimes. Change-Id: Ic12ff70e95953de44ef5798131150669d07a5445 --- vbahelper/source/vbahelper/vbalineformat.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vbahelper/source') diff --git a/vbahelper/source/vbahelper/vbalineformat.cxx b/vbahelper/source/vbahelper/vbalineformat.cxx index b5f57096bb94..68e203913730 100644 --- a/vbahelper/source/vbahelper/vbalineformat.cxx +++ b/vbahelper/source/vbahelper/vbalineformat.cxx @@ -104,7 +104,7 @@ ScVbaLineFormat::getBeginArrowheadStyle() throw (uno::RuntimeException) m_xPropertySet->getPropertyValue( rtl::OUString("LineStartName") ) >>= sLineName; if( ( sLineName.getLength() > 7 ) && ( sLineName.indexOf( rtl::OUString("msArray") ) ) != -1 ) { - sal_Int32 nIndex = sLineName.indexOf( rtl::OUString(" ") ); + sal_Int32 nIndex = sLineName.indexOf( ' ' ); rtl::OUString sName = sLineName.copy( 0, nIndex ); //sal_Int32 nSize = sLineName.copy( nIndex + 1 ).toInt32(); nLineType = convertLineStartEndNameToArrowheadStyle( sName ); -- cgit