Commit 7c68aa0c authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

port some q_foreach

parent d4428c86
......@@ -131,7 +131,7 @@ QVariant ContactsTreeModel::entityData(const Item &item, int column, int role) c
QStringList values;
const KContacts::PhoneNumber::List numbers = contact.phoneNumbers();
foreach (const KContacts::PhoneNumber &number, numbers) {
for (const KContacts::PhoneNumber &number : numbers) {
values += number.number();
}
......
......@@ -302,7 +302,7 @@ void ImageWidget::changeImage()
const QList<QByteArray> supportedImage = QImageReader::supportedImageFormats();
QString filter;
Q_FOREACH (const QByteArray &ba, supportedImage) {
for (const QByteArray &ba : supportedImage) {
if (!filter.isEmpty()) {
filter += QLatin1Char(' ');
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment