Kaydet (Commit) 3bfe1012 authored tarafından Matteo Casalin's avatar Matteo Casalin

Do not use indexing for single getToken call, simplify

Change-Id: I8ee0ccbbc596a4edd0da50e8bbcf573afc9bb53b
Reviewed-on: https://gerrit.libreoffice.org/65665
Tested-by: Jenkins
Reviewed-by: 's avatarMatteo Casalin <matteo.casalin@yahoo.com>
üst e66d82f7
...@@ -1120,11 +1120,8 @@ OUString ObjectIdentifier::createChildParticleWithIndex( ObjectType eObjectType, ...@@ -1120,11 +1120,8 @@ OUString ObjectIdentifier::createChildParticleWithIndex( ObjectType eObjectType,
sal_Int32 ObjectIdentifier::getIndexFromParticleOrCID( const OUString& rParticleOrCID ) sal_Int32 ObjectIdentifier::getIndexFromParticleOrCID( const OUString& rParticleOrCID )
{ {
OUString aIndexString = lcl_getIndexStringAfterString( rParticleOrCID, "=" ); const OUString aIndexString = lcl_getIndexStringAfterString( rParticleOrCID, "=" );
sal_Int32 nCharacterIndex=0; return lcl_StringToIndex( aIndexString.getToken( 0, ',' ) );
sal_Int32 nRet = lcl_StringToIndex( aIndexString.getToken( 0, ',', nCharacterIndex ) );
return nRet;
} }
OUString ObjectIdentifier::createSeriesSubObjectStub( ObjectType eSubObjectType OUString ObjectIdentifier::createSeriesSubObjectStub( ObjectType eSubObjectType
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment