diff --git a/cppuhelper/source/factory.cxx b/cppuhelper/source/factory.cxx index 97eb8f851077..c993de1ac0bc 100644 --- a/cppuhelper/source/factory.cxx +++ b/cppuhelper/source/factory.cxx @@ -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 xLocationKey = xImplementationKey->openKey( "/UNO/LOCATION" );