summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-09-08 22:11:11 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-09-09 08:25:30 +0200
commitf2517e82904b92989ed7e38a070c18234f460b33 (patch)
tree2b9bb63f3865670ad250f9fd706a577d1696d88f /desktop
parent1159f58831c69680e9f10767d5358e13b66579dd (diff)
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 <noel.grandin@collabora.co.uk>
Diffstat (limited to 'desktop')
-rw-r--r--desktop/source/app/langselect.cxx3
1 files changed, 0 insertions, 3 deletions
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;
}