From 22daa770c2bc5d7105f1477410f2410f5a15b487 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Tue, 17 Sep 2024 09:06:26 +0100 Subject: these can be const MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Id560175cc69162b362e8f96b2dc0255118387f8f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173539 Tested-by: Caolán McNamara Reviewed-by: Caolán McNamara --- desktop/source/lib/init.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'desktop/source') diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx index 6a23f17911f2..ad8787c5173b 100644 --- a/desktop/source/lib/init.cxx +++ b/desktop/source/lib/init.cxx @@ -7924,7 +7924,7 @@ static void preloadData() std::cerr << "Preloading local dictionaries: "; css::uno::Reference xSpellLocales(xSpellChecker, css::uno::UNO_QUERY_THROW); uno::Sequence< css::lang::Locale > aLocales = xSpellLocales->getLocales(); - for (auto& it : aLocales) + for (const auto& it : aLocales) { std::cerr << LanguageTag::convertToBcp47(it) << " "; css::beans::PropertyValues aNone; @@ -7945,7 +7945,7 @@ static void preloadData() css::uno::Reference xThesLocales(xSpellChecker, css::uno::UNO_QUERY_THROW); aLocales = xThesLocales->getLocales(); std::cerr << "Preloading local thesauri: "; - for (auto& it : aLocales) + for (const auto& it : aLocales) { std::cerr << LanguageTag::convertToBcp47(it) << " "; css::beans::PropertyValues aNone; -- cgit