Use auto here too

This commit is contained in:
Laurent Montel 2019-02-28 23:03:25 +01:00
parent f1c6c15b06
commit 297b168a52

View File

@ -72,8 +72,8 @@ int main(int argc, char **argv)
if (parser.isSet(listformats)) {
QTextStream out(stdout);
out << "File formats:\n";
const QList<QByteArray> lstSupportedFormats = QImageReader::supportedImageFormats();
for (const QByteArray &fmt : lstSupportedFormats) {
const auto lstSupportedFormats = QImageReader::supportedImageFormats();
for (const auto &fmt : lstSupportedFormats) {
out << " " << fmt << '\n';
}
return 0;