kcontrol: avoid temporary in CountrySelectorDialog::editCountry()

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
Ivailo Monev 2020-02-02 16:19:27 +00:00
parent 40666e3127
commit 84a7f988cc

View file

@ -236,10 +236,8 @@ bool CountrySelectorDialog::editCountry(KControlLocale *locale)
CountryModel *cm = new CountryModel(this);
const QString &sub = QString::fromLatin1("l10n/");
QStringList regionlist = KGlobal::dirs()->findAllResources("locale",
sub + QString::fromLatin1("*.desktop"),
QString::fromLatin1("l10n/*.desktop"),
KStandardDirs::NoDuplicates);
QFontMetrics fm(lv1->font());