minimal platform plugin: eradicate Q_FOREACH loops
... by replacing them with C++11 range-for loops. Change-Id: I0798d02e19d9f53d96db2f14554325eaeff2a26d Reviewed-by: Lars Knoll <lars.knoll@qt.io>bb10
parent
3c7d67a044
commit
33aaa6a995
|
|
@ -2,6 +2,8 @@ TARGET = qminimal
|
|||
|
||||
QT += core-private gui-private platformsupport-private
|
||||
|
||||
DEFINES += QT_NO_FOREACH
|
||||
|
||||
SOURCES = main.cpp \
|
||||
qminimalintegration.cpp \
|
||||
qminimalbackingstore.cpp
|
||||
|
|
|
|||
|
|
@ -67,7 +67,7 @@ static const char debugBackingStoreEnvironmentVariable[] = "QT_DEBUG_BACKINGSTOR
|
|||
static inline unsigned parseOptions(const QStringList ¶mList)
|
||||
{
|
||||
unsigned options = 0;
|
||||
foreach (const QString ¶m, paramList) {
|
||||
for (const QString ¶m : paramList) {
|
||||
if (param == QLatin1String("enable_fonts"))
|
||||
options |= QMinimalIntegration::EnableFonts;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue