diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2018-11-27 23:46:11 +0100 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2018-12-29 00:14:07 +0100 |
commit | 3bfe10125888bcbd9f35daa4724b6fe913f4414b (patch) | |
tree | bde2af871c09062404d823ccb1ea01f5e1bb1f1b /chart2 | |
parent | e66d82f72a09052e66e0ebface3135b04593edee (diff) |
Do not use indexing for single getToken call, simplify
Change-Id: I8ee0ccbbc596a4edd0da50e8bbcf573afc9bb53b
Reviewed-on: https://gerrit.libreoffice.org/65665
Tested-by: Jenkins
Reviewed-by: Matteo Casalin <matteo.casalin@yahoo.com>
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/source/tools/ObjectIdentifier.cxx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/chart2/source/tools/ObjectIdentifier.cxx b/chart2/source/tools/ObjectIdentifier.cxx index a884afea02df..3b358ddc946e 100644 --- a/chart2/source/tools/ObjectIdentifier.cxx +++ b/chart2/source/tools/ObjectIdentifier.cxx @@ -1120,11 +1120,8 @@ OUString ObjectIdentifier::createChildParticleWithIndex( ObjectType eObjectType, sal_Int32 ObjectIdentifier::getIndexFromParticleOrCID( const OUString& rParticleOrCID ) { - OUString aIndexString = lcl_getIndexStringAfterString( rParticleOrCID, "=" ); - sal_Int32 nCharacterIndex=0; - sal_Int32 nRet = lcl_StringToIndex( aIndexString.getToken( 0, ',', nCharacterIndex ) ); - - return nRet; + const OUString aIndexString = lcl_getIndexStringAfterString( rParticleOrCID, "=" ); + return lcl_StringToIndex( aIndexString.getToken( 0, ',' ) ); } OUString ObjectIdentifier::createSeriesSubObjectStub( ObjectType eSubObjectType |