You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
phonon/0002-Change-a-foreach-to-Q_...

27 lines
994 B

From c07c522992f1308c8bac9994b9e312728d513835 Mon Sep 17 00:00:00 2001
From: Raymond Wooninck <tittiatcoke@gmail.com>
Date: Mon, 19 Dec 2011 14:28:37 +0100
Subject: [PATCH 02/12] Change a foreach to Q_FOREACH to prevent compile errors
with other packages. Discussed with apachelogger
---
phonon/objectdescription.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/phonon/objectdescription.h b/phonon/objectdescription.h
index ac13276..025ee60 100644
--- a/phonon/objectdescription.h
+++ b/phonon/objectdescription.h
@@ -269,7 +269,7 @@ QDebug operator<<(QDebug dbg, const ObjectDescription<T> &d)
{
dbg.nospace() << "\n{\n";
dbg.nospace() << " index: " << d.index() << "\n";
- foreach (const QByteArray &propertyName, d.propertyNames()) {
+ Q_FOREACH (const QByteArray &propertyName, d.propertyNames()) {
dbg.nospace() << " " << propertyName << ": " <<
d.property(propertyName).toString() << "\n";
}
--
1.8.3.1