diff options
author | Marco Cecchetti <marco.cecchetti@collabora.com> | 2023-06-02 16:02:07 +0200 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2023-10-11 15:21:11 +0200 |
commit | bf9897bc11a5ee06197ce566214456f796f68a34 (patch) | |
tree | 54fdac6d4824df9e9ff5ff09d8e91854a7d85f45 /desktop | |
parent | 7c36e6ec7b00fa6be8ef5adbc7fd38b90a2c64e3 (diff) |
Removing unused variable in preLoadShortCutAccelerators
When all warnings are treated as errors the following error was
reported:
desktop/source/lib/init.cxx:
OUString language =
LanguageTag(installedLocales[i]).getLocale().Language;
The problem started after commit
1cd46ba9140b7f5f077d8e9da405b180857f008d.
Remove the allowed language check from UI languages.
Change-Id: Id1f4269fe262b61b4fb05d61bf9c64a747275c28
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/152561
Reviewed-by: Gökay ŞATIR <gokaysatir@collabora.com>
Tested-by: Aron Budea <aron.budea@collabora.com>
(cherry picked from commit b0fa2ea7decadae61ad10e340698a8dd4af45e6e)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157813
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/source/lib/init.cxx | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx index 387eb95e0fa7..fc57d748d5d4 100644 --- a/desktop/source/lib/init.cxx +++ b/desktop/source/lib/init.cxx @@ -7521,8 +7521,6 @@ static void preLoadShortCutAccelerators() for (sal_Int32 i = 0; i < installedLocales.getLength(); i++) { - OUString language = LanguageTag(installedLocales[i]).getLocale().Language; - // Set the UI language to current one, before creating the accelerator. std::shared_ptr<comphelper::ConfigurationChanges> batch(comphelper::ConfigurationChanges::create()); officecfg::Setup::L10N::ooLocale::set(installedLocales[i], batch); |