cppuhelper/source/factory.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
New commits: commit 83e7d9e0847af169bd0bfb6ef0b59eaa08a0631e Author: Matteo Casalin <matteo.casa...@yahoo.com> AuthorDate: Thu Dec 13 08:36:40 2018 +0100 Commit: Matteo Casalin <matteo.casa...@yahoo.com> CommitDate: Fri Dec 28 17:07:29 2018 +0100 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.casa...@yahoo.com> 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<XRegistryKey > xLocationKey = xImplementationKey->openKey( "/UNO/LOCATION" ); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits