summaryrefslogtreecommitdiff
path: root/stoc
diff options
context:
space:
mode:
authorMatteo Casalin <matteo.casalin@yahoo.com>2019-02-09 18:18:47 +0100
committerMatteo Casalin <matteo.casalin@yahoo.com>2019-02-13 07:46:26 +0100
commit972b9968cd8bd70bfb39e3307cb5097302682c31 (patch)
tree90c29b91576acb9d8bfff0d1792a04d68d757ab5 /stoc
parentbd0ba6d459d9da09038db93bf701135273a429df (diff)
Avoid index for single getToken() call
Change-Id: I907c108f4b056d3388464e29ce2fc40b319380c0 Reviewed-on: https://gerrit.libreoffice.org/67627 Tested-by: Jenkins Reviewed-by: Matteo Casalin <matteo.casalin@yahoo.com>
Diffstat (limited to 'stoc')
-rw-r--r--stoc/source/implementationregistration/implreg.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/stoc/source/implementationregistration/implreg.cxx b/stoc/source/implementationregistration/implreg.cxx
index 363a8bf7c52c..e463097bb5e6 100644
--- a/stoc/source/implementationregistration/implreg.cxx
+++ b/stoc/source/implementationregistration/implreg.cxx
@@ -1362,8 +1362,7 @@ void ImplementationRegistration::prepareRegister(
if (!implementationLoaderUrl.isEmpty())
{
- sal_Int32 nIndex = 0;
- activatorName = implementationLoaderUrl.getToken(0, ':', nIndex );
+ activatorName = implementationLoaderUrl.getToken(0, ':');
} else
{
// check locationUrl to find out what kind of loader is needed
@@ -1494,8 +1493,7 @@ Sequence< OUString > ImplementationRegistration::getImplementations(
if (!implementationLoaderUrl.isEmpty())
{
- sal_Int32 nIndex = 0;
- activatorName = implementationLoaderUrl.getToken(0, ':', nIndex );
+ activatorName = implementationLoaderUrl.getToken(0, ':');
} else
{
// check locationUrl to find out what kind of loader is needed