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:
parent
b961fca5f0
commit
d1a4c4f3c9
@ -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);
|
||||
|
@ -1,5 +1,6 @@
|
||||
TARGET = QtXcbQpa
|
||||
CONFIG += no_module_headers internal_module
|
||||
DEFINES += QT_NO_FOREACH
|
||||
|
||||
QT += core-private gui-private platformsupport-private
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user