summaryrefslogtreecommitdiff
path: root/i18nlangtag
diff options
context:
space:
mode:
authorMatteo Casalin <matteo.casalin@yahoo.com>2019-02-23 20:04:41 +0100
committerEike Rathke <erack@redhat.com>2019-03-18 12:25:24 +0100
commite8d8b8270ba1ec2d49ad43b70287e60cb18a3e61 (patch)
treec5d776a79f55037e9bd96fe1f957b346b0039003 /i18nlangtag
parentc9bbe8ed69f9cc14b05e2147136725822f7e45ef (diff)
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@redhat.com>
Diffstat (limited to 'i18nlangtag')
-rw-r--r--i18nlangtag/source/isolang/isolang.cxx3
1 files changed, 1 insertions, 2 deletions
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)