Same changelog as before: fix debug-mode compilation
authorThiago Macieira <thiago@kde.org>
Sat, 6 May 2006 10:46:38 +0000 (10:46 +0000)
committerThiago Macieira <thiago@kde.org>
Sat, 6 May 2006 10:46:38 +0000 (10:46 +0000)
qt/qdbusmessage.cpp

index 456c1d2..d0a0f1e 100644 (file)
@@ -665,13 +665,15 @@ static void debugVariant(QDebug dbg, const QVariant &v)
     dbg.nospace() << ")";
 }    
 
-static void debugVariantList(QDebug dbg, const QVariantList list)
+static void debugVariantList(QDebug dbg, const QVariantList &list)
 {
     bool first = true;
-    foreach (const QVariant &v, list) {
+    QVariantList::ConstIterator it = list.constBegin();
+    QVariantList::ConstIterator end = list.constEnd();
+    for ( ; it != end; ++it) {
         if (!first)
             dbg.nospace() << ", ";
-        debugVariant(dbg, v);
+        debugVariant(dbg, *it);
         first = false;
     }
 }