Fix warning about missing reference in range-based for loop
This commit is contained in:
parent
6d0944dd9e
commit
c787b1bc7c
|
@ -91,7 +91,7 @@ void GuiPreferencesDialog::initLanguageCombo(){
|
||||||
QDir dirLang(localeDirectory);
|
QDir dirLang(localeDirectory);
|
||||||
dirLang.setFilter(QDir::Files | QDir::Hidden | QDir::NoDotAndDotDot);
|
dirLang.setFilter(QDir::Files | QDir::Hidden | QDir::NoDotAndDotDot);
|
||||||
QFileInfoList listLang = dirLang.entryInfoList();
|
QFileInfoList listLang = dirLang.entryInfoList();
|
||||||
for (QFileInfo fileInfo : listLang) {
|
for (const QFileInfo &fileInfo : listLang) {
|
||||||
|
|
||||||
QRegExp rx("(pianobooster_)(.*)(.qm)");
|
QRegExp rx("(pianobooster_)(.*)(.qm)");
|
||||||
if (rx.indexIn(fileInfo.fileName())!=-1){
|
if (rx.indexIn(fileInfo.fileName())!=-1){
|
||||||
|
|
Loading…
Reference in New Issue
Block a user