From f2517e82904b92989ed7e38a070c18234f460b33 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 8 Sep 2020 22:11:11 +0200 Subject: improve loplugin:unusedvarsglobal to find any global variable, was checking the wrong property of VarDecl Change-Id: I454b4e0c1701bb0771768a1ee10cd738c4ab0726 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/102278 Tested-by: Jenkins Reviewed-by: Noel Grandin --- desktop/source/app/langselect.cxx | 3 --- 1 file changed, 3 deletions(-) (limited to 'desktop/source/app/langselect.cxx') diff --git a/desktop/source/app/langselect.cxx b/desktop/source/app/langselect.cxx index 468ba9368ee5..711d567d2063 100644 --- a/desktop/source/app/langselect.cxx +++ b/desktop/source/app/langselect.cxx @@ -47,8 +47,6 @@ namespace desktop::langselect { namespace { -OUString foundLocale; - void setMsLangIdFallback(OUString const & locale) { // #i32939# setting of default document language // See #i42730# for rules for determining source of settings @@ -141,7 +139,6 @@ bool prepareLocale() { LanguageTag docTag(LANGUAGE_SYSTEM); setMsLangIdFallback(docTag.getBcp47()); - foundLocale = locale; return true; } -- cgit