stoc/source/implementationregistration/implreg.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
New commits: commit 972b9968cd8bd70bfb39e3307cb5097302682c31 Author: Matteo Casalin <matteo.casa...@yahoo.com> AuthorDate: Sat Feb 9 18:18:47 2019 +0100 Commit: Matteo Casalin <matteo.casa...@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.casa...@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 _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits