diff --git a/phonon/objectdescription.h b/phonon/objectdescription.h --- a/phonon/objectdescription.h +++ b/phonon/objectdescription.h @@ -267,7 +267,8 @@ { dbg.nospace() << "\n{\n"; dbg.nospace() << " index: " << d.index() << "\n"; - Q_FOREACH (const QByteArray &propertyName, d.propertyNames()) { + const auto propertyNames = d.propertyNames(); + for (const auto &propertyName : propertyNames) { dbg.nospace() << " " << propertyName << ": " << d.property(propertyName).toString() << "\n"; }