summaryrefslogtreecommitdiff
path: root/cppuhelper
diff options
context:
space:
mode:
authorMatteo Casalin <matteo.casalin@yahoo.com>2018-12-13 08:36:40 +0100
committerMatteo Casalin <matteo.casalin@yahoo.com>2018-12-28 17:07:29 +0100
commit83e7d9e0847af169bd0bfb6ef0b59eaa08a0631e (patch)
tree282fbc91be78b16cb54b7b79e4394f20bcbedb3a /cppuhelper
parent86daabed8b36820e6c6e3a48f8221aadec2c81a3 (diff)
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>
Diffstat (limited to 'cppuhelper')
-rw-r--r--cppuhelper/source/factory.cxx3
1 files changed, 1 insertions, 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<XRegistryKey > xLocationKey = xImplementationKey->openKey(
"/UNO/LOCATION" );