diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2012-07-12 22:10:17 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2012-07-13 16:36:04 +0200 |
commit | a7674482254ee996b1c4fee60f3064778be369aa (patch) | |
tree | dcafebf4d72d6d26ad949f0d18a000ea00f02315 /vbahelper | |
parent | 0cba5e5d25bf2f30c8500e1e673a7ef9e8e8d352 (diff) |
Search for char instead of 1 char long string, when possible.
It is faster and even avoid memory allocation somtimes.
Change-Id: Ic12ff70e95953de44ef5798131150669d07a5445
Diffstat (limited to 'vbahelper')
-rw-r--r-- | vbahelper/source/vbahelper/vbalineformat.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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 ); |