xcb: eradicate Q_FOREACH loops

... and mark the library with QT_NO_FOREACH.

Change-Id: I4924f1419f470b5fa92bb2f3fdefa745b65957f7
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
This commit is contained in:
Marc Mutz 2016-08-15 15:42:07 +02:00
parent b961fca5f0
commit d1a4c4f3c9
2 changed files with 2 additions and 1 deletions

View File

@ -212,7 +212,7 @@ QVariant QXcbMime::mimeConvertToFormat(QXcbConnection *connection, xcb_atom_t a,
if (format == QLatin1String("text/uri-list")) {
const QStringList urls = str.split(QLatin1Char('\n'));
QList<QVariant> list;
foreach (const QString &s, urls) {
for (const QString &s : urls) {
const QUrl url(s.trimmed());
if (url.isValid())
list.append(url);

View File

@ -1,5 +1,6 @@
TARGET = QtXcbQpa
CONFIG += no_module_headers internal_module
DEFINES += QT_NO_FOREACH
QT += core-private gui-private platformsupport-private