aboutsummaryrefslogtreecommitdiff
path: root/src/qmmpui/aboutdialog.cpp
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2019-09-07 22:08:54 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2019-09-07 22:08:54 +0000
commit1e31fe896524513577911e382897b841e40a4814 (patch)
tree153483337dcab82e0bc32cc19f7876a7eb9593c7 /src/qmmpui/aboutdialog.cpp
parent1d6f69e20769d902a70001277199129361d0a761 (diff)
downloadqmmp-1e31fe896524513577911e382897b841e40a4814.tar.gz
qmmp-1e31fe896524513577911e382897b841e40a4814.tar.bz2
qmmp-1e31fe896524513577911e382897b841e40a4814.zip
removed foreach macro
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@9067 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/qmmpui/aboutdialog.cpp')
-rw-r--r--src/qmmpui/aboutdialog.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/qmmpui/aboutdialog.cpp b/src/qmmpui/aboutdialog.cpp
index c21633f87..6cb92524c 100644
--- a/src/qmmpui/aboutdialog.cpp
+++ b/src/qmmpui/aboutdialog.cpp
@@ -75,7 +75,7 @@ QString AboutDialog::loadAbout()
text.append("<h5>"+tr("Input plugins:")+"</h5>");
text.append("<ul type=\"square\">");
- foreach(DecoderFactory *fact, Decoder::factories())
+ for(const DecoderFactory *fact : Decoder::factories())
{
text.append("<li>");
text.append(fact->properties().name);
@@ -84,7 +84,7 @@ QString AboutDialog::loadAbout()
text.append("</ul>");
text.append("<h5>"+tr("Output plugins:")+"</h5>");
text.append("<ul type=\"square\">");
- foreach(OutputFactory *fact, Output::factories())
+ for(const OutputFactory *fact : Output::factories())
{
text.append("<li>");
text.append(fact->properties().name);
@@ -93,7 +93,7 @@ QString AboutDialog::loadAbout()
text.append("</ul>");
text.append("<h5>"+tr("Visual plugins:")+"</h5>");
text.append("<ul type=\"square\">");
- foreach(VisualFactory *fact, Visual::factories())
+ for(const VisualFactory *fact : Visual::factories())
{
text.append("<li>");
text.append(fact->properties().name);
@@ -102,7 +102,7 @@ QString AboutDialog::loadAbout()
text.append("</ul>");
text.append("<h5>"+tr("Effect plugins:")+"</h5>");
text.append("<ul type=\"square\">");
- foreach(EffectFactory *fact, Effect::factories())
+ for(const EffectFactory *fact : Effect::factories())
{
text.append("<li>");
text.append(fact->properties().name);
@@ -111,7 +111,7 @@ QString AboutDialog::loadAbout()
text.append("</ul>");
text.append("<h5>"+tr("General plugins:")+"</h5>");
text.append("<ul type=\"square\">");
- foreach(GeneralFactory *fact, General::factories())
+ for(const GeneralFactory *fact : General::factories())
{
text.append("<li>");
text.append(fact->properties().name);
@@ -123,7 +123,7 @@ QString AboutDialog::loadAbout()
return text;
}
-QString AboutDialog::getStringFromResource(const QString& res_file)
+QString AboutDialog::getStringFromResource(const QString &res_file)
{
QString ret_string;
QStringList paths;
@@ -135,7 +135,7 @@ QString AboutDialog::getStringFromResource(const QString& res_file)
paths << res_file + ".txt";
paths << res_file;
- foreach(QString path, paths)
+ for(const QString &path : qAsConst(paths))
{
QFile file(path);
if (file.open(QIODevice::ReadOnly))