[Libreoffice-commits] core.git: stoc/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Wed Feb 13 06:46:51 UTC 2019


 stoc/source/implementationregistration/implreg.cxx |    6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

New commits:
commit 972b9968cd8bd70bfb39e3307cb5097302682c31
Author:     Matteo Casalin <matteo.casalin at yahoo.com>
AuthorDate: Sat Feb 9 18:18:47 2019 +0100
Commit:     Matteo Casalin <matteo.casalin at yahoo.com>
CommitDate: Wed Feb 13 07:46:26 2019 +0100

    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 at yahoo.com>

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


More information about the Libreoffice-commits mailing list