Closed luis-pereira closed 7 years ago
seems OK... GTM
GTM - but we should replace Q_FOREACH in the tests also
test/qtxdg_test.cpp: Q_FOREACH (QString mimedir, mimedirs)
test/qtxdg_test.cpp: Q_FOREACH(QFileInfo mediaDir, dir.entryInfoList(QDir::Dirs | QDir::NoDotAndDotDot))
test/qtxdg_test.cpp: Q_FOREACH (QString mimeXmlFileName, QDir(mediaDir.absoluteFilePath()).entryList(filters, QDir::Files))
These three lines was left over with the PR applied, maybe i missed something.
@agaida You didn't miss anything. I missed the test
directory.
Updated.
Qt 5.9 deprecated it. Replaced with C++11 ranged for-loops. We don't use qAsConst(). It was introduced in Qt 5.7. We don't require Qt 5.7. qAsConst() replaced with const_cast<const T&>(t).