diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2016-09-06 11:46:40 +0200 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2016-09-06 11:58:42 +0000 |
commit | 57b5739923a741aa4317c11c5e86c911cc25f798 (patch) | |
tree | 8d7c44697d499a167518a6216712501362974368 /examples/macextras/macpasteboardmime/main.cpp | |
parent | e0e5a57430af761192b98292fab73284d351e4f1 (diff) |
Eradicate Q_FOREACH loops and mark the module as Q_FOREACH-freev5.8.0-beta1
In the examples, replaced a Q_FOREACH with QList<QByteArray>::join().
Change-Id: I6b1ca1666bf0a69c6489f970da19b3f966327cdb
Reviewed-by: Jake Petroules <jake.petroules@qt.io>
Diffstat (limited to 'examples/macextras/macpasteboardmime/main.cpp')
-rw-r--r-- | examples/macextras/macpasteboardmime/main.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/examples/macextras/macpasteboardmime/main.cpp b/examples/macextras/macpasteboardmime/main.cpp index 7cb5e3e..f747e02 100644 --- a/examples/macextras/macpasteboardmime/main.cpp +++ b/examples/macextras/macpasteboardmime/main.cpp @@ -91,11 +91,7 @@ public: Q_UNUSED(mime); Q_UNUSED(flav); - QByteArray all; - foreach (QByteArray i, data) { - all += i; - } - return QVariant(all); + return QVariant(data.join()); } QList<QByteArray> convertFromMime(const QString &mime, QVariant data, QString flav) |