[Libreoffice-commits] core.git: i18nlangtag/source jvmfwk/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Mon Mar 18 11:25:45 UTC 2019
i18nlangtag/source/isolang/isolang.cxx | 3 +--
jvmfwk/source/fwkbase.cxx | 3 +--
2 files changed, 2 insertions(+), 4 deletions(-)
New commits:
commit e8d8b8270ba1ec2d49ad43b70287e60cb18a3e61
Author: Matteo Casalin <matteo.casalin at yahoo.com>
AuthorDate: Sat Feb 23 20:04:41 2019 +0100
Commit: Eike Rathke <erack at redhat.com>
CommitDate: Mon Mar 18 12:25:24 2019 +0100
Index is not needed for single getToken call
Change-Id: Ia0cc331998d735002dda5eedff8dad3bfbd53979
Reviewed-on: https://gerrit.libreoffice.org/69235
Tested-by: Jenkins
Reviewed-by: Eike Rathke <erack at redhat.com>
diff --git a/i18nlangtag/source/isolang/isolang.cxx b/i18nlangtag/source/isolang/isolang.cxx
index 8d135bef4bd0..4ed15d5a3efb 100644
--- a/i18nlangtag/source/isolang/isolang.cxx
+++ b/i18nlangtag/source/isolang/isolang.cxx
@@ -1129,8 +1129,7 @@ css::lang::Locale MsLangId::Conversion::lookupFallbackLocale(
// Locale because in the tables that follow we have only ISO 3166
// countries and if that is in the tag string we also have it in the
// Locale.
- sal_Int32 nIndex = 0;
- aLowerLang = rLocale.Variant.getToken( 0, '-', nIndex).toAsciiLowerCase();
+ aLowerLang = rLocale.Variant.getToken(0, '-').toAsciiLowerCase();
// Nothing with "x-..." or "i-..." or any 1 letter in lll-CC table that
// follows.
if (aLowerLang.getLength() == 1)
diff --git a/jvmfwk/source/fwkbase.cxx b/jvmfwk/source/fwkbase.cxx
index 2286fd9b1e17..db91bdeb38f4 100644
--- a/jvmfwk/source/fwkbase.cxx
+++ b/jvmfwk/source/fwkbase.cxx
@@ -79,8 +79,7 @@ OUString getParamFirstUrl(OUString const & name)
// Some parameters can consist of multiple URLs (separated by space
// characters, although trim() harmlessly also removes other white-space),
// of which only the first is used:
- sal_Int32 i = 0;
- return getParam(name).trim().getToken(0, ' ', i);
+ return getParam(name).trim().getToken(0, ' ');
}
}//blind namespace
More information about the Libreoffice-commits
mailing list