mirror of
https://invent.kde.org/frameworks/kimageformats.git
synced 2025-07-18 03:54:18 -04:00
compile without foreach
Summary: compile without foreach Reviewers: dfaure, apol Reviewed By: apol Subscribers: apol, kde-frameworks-devel Tags: #frameworks Differential Revision: https://phabricator.kde.org/D19317
This commit is contained in:
@ -72,7 +72,8 @@ int main(int argc, char **argv)
|
||||
if (parser.isSet(listformats)) {
|
||||
QTextStream out(stdout);
|
||||
out << "File formats:\n";
|
||||
foreach (const QByteArray &fmt, QImageReader::supportedImageFormats()) {
|
||||
const QList<QByteArray> lstSupportedFormats = QImageReader::supportedImageFormats();
|
||||
for (const QByteArray &fmt : lstSupportedFormats) {
|
||||
out << " " << fmt << '\n';
|
||||
}
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user