Do not use indexed getToken for a single call

Change-Id: Ib1026754a7db034af5910d84d008d0ef997ebb96
Reviewed-on: https://gerrit.libreoffice.org/65672
Tested-by: Jenkins
Reviewed-by: Matteo Casalin <matteo.casalin@yahoo.com>
This commit is contained in:
Matteo Casalin 2018-12-13 08:36:40 +01:00
parent 86daabed8b
commit 83e7d9e084

View file

@ -700,8 +700,7 @@ Reference< XInterface > ORegistryFactoryHelper::createModuleFactory()
{
aActivatorUrl = xActivatorKey->getAsciiValue();
sal_Int32 nIndex = 0;
aActivatorName = aActivatorUrl.getToken(0, ':', nIndex );
aActivatorName = aActivatorUrl.getToken(0, ':');
Reference<XRegistryKey > xLocationKey = xImplementationKey->openKey(
"/UNO/LOCATION" );