From 1e31fe896524513577911e382897b841e40a4814 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Sat, 7 Sep 2019 22:08:54 +0000 Subject: removed foreach macro git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@9067 90c681e8-e032-0410-971d-27865f9a5e38 --- src/plugins/CommandLineOptions/PlayListOption/playlistoption.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/plugins/CommandLineOptions') diff --git a/src/plugins/CommandLineOptions/PlayListOption/playlistoption.cpp b/src/plugins/CommandLineOptions/PlayListOption/playlistoption.cpp index 4b5bba8eb..e3e891f59 100644 --- a/src/plugins/CommandLineOptions/PlayListOption/playlistoption.cpp +++ b/src/plugins/CommandLineOptions/PlayListOption/playlistoption.cpp @@ -79,7 +79,7 @@ QString PlayListOption::executeCommand(int id, const QStringList &args) << helpString(PL_SHUFFLE_TOGGLE) << helpString(PL_STATE); - foreach (QString line, list) + for(const QString &line : qAsConst(list)) out += CommandLineManager::formatHelpString(line) + "\n"; } break; -- cgit v1.2.3-13-gbd6f