desktop/source/lib/init.cxx | 2 --
1 file changed, 2 deletions(-)
New commits:
commit b0fa2ea7decadae61ad10e340698a8dd4af45e6e
Author: Marco Cecchetti <[email protected]>
AuthorDate: Fri Jun 2 16:02:07 2023 +0200
Commit: Aron Budea <[email protected]>
CommitDate: Fri Jun 2 19:45:59 2023 +0200
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 <[email protected]>
Tested-by: Aron Budea <[email protected]>
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx
index 58f9331cb992..9572a0c7779b 100644
--- a/desktop/source/lib/init.cxx
+++ b/desktop/source/lib/init.cxx
@@ -7217,8 +7217,6 @@ 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);