Commit 72b70721 authored by Laurent Montel's avatar Laurent Montel 😁

Const'ify

parent b4db3777
......@@ -408,12 +408,12 @@ QString HolidayRegion::defaultRegionCode(const QString &country, const QString &
localeLanguageCountry = localeLanguage.split(QLatin1Char('_')).at(1);
}
QStringList regionList = KHolidays::HolidayRegion::regionCodes();
QString countryAndLanguageMatch, countryOnlyMatch, subdivisionAndLanguageMatch,
subdivisionOnlyMatch, languageCountryAndLanguageMatch, languageCountryOnlyMatch,
languageSubdivisionAndLanguageMatch, languageSubdivisionOnlyMatch;
const QStringList regionList = KHolidays::HolidayRegion::regionCodes();
foreach (const QString &regionCode, regionList) {
QString regionCountry = KHolidays::HolidayRegion::countryCode(regionCode).toLower();
QString regionSubdivisionCountry;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment