From 83e7d9e0847af169bd0bfb6ef0b59eaa08a0631e Mon Sep 17 00:00:00 2001 From: Matteo Casalin Date: Thu, 13 Dec 2018 08:36:40 +0100 Subject: [PATCH] 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 --- cppuhelper/source/factory.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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" );