Kaydet (Commit) e8d8b827 authored tarafından Matteo Casalin's avatar Matteo Casalin Kaydeden (comit) Eike Rathke

Index is not needed for single getToken call

Change-Id: Ia0cc331998d735002dda5eedff8dad3bfbd53979
Reviewed-on: https://gerrit.libreoffice.org/69235
Tested-by: Jenkins
Reviewed-by: 's avatarEike Rathke <erack@redhat.com>
üst c9bbe8ed
......@@ -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)
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment