[SCM] WebKit Debian packaging branch, debian/unstable, updated. debian/1.1.15-1-40151-g37bb677

kocienda kocienda at 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Sat Sep 26 05:46:54 UTC 2009


The following commit has been merged in the debian/unstable branch:
commit 4795771885e8191df0aa072e05a1b41fbf1af5b5
Author: kocienda <kocienda at 268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Mon Sep 24 19:05:39 2001 +0000

    Added iostream includes
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@186 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/WebCore/kwq/qt/_qarray.h b/WebCore/kwq/qt/_qarray.h
index 0fe505c..439ded7 100644
--- a/WebCore/kwq/qt/_qarray.h
+++ b/WebCore/kwq/qt/_qarray.h
@@ -45,6 +45,7 @@
 #endif
 
 #include <KWQDef.h>
+#include <iostream>
 
 // -------------------------------------------------------------------------
 
diff --git a/WebCore/kwq/qt/_qvector.h b/WebCore/kwq/qt/_qvector.h
index 6995da1..ae18f62 100644
--- a/WebCore/kwq/qt/_qvector.h
+++ b/WebCore/kwq/qt/_qvector.h
@@ -45,6 +45,7 @@
 #endif
 
 #include <KWQDef.h>
+#include <iostream>
 
 // -------------------------------------------------------------------------
 
@@ -90,5 +91,32 @@ private:
     void  deleteItem( Item d ) { if ( del_item ) delete (type *)d; }
 };
 
+#ifdef _KWQ_IOSTREAM_
+template<class T>
+inline ostream &operator<<(ostream &o, const QVector<T> &p)
+{
+    int count = p.count();
+
+    o << "QVector: [size: " <<
+    count <<
+    "; items: ";
+
+    if (count == 0) {
+        // no-op
+    }
+    else {
+        for (int i = 0; i < count; i++) {
+            o << *(p[i]);
+            if (i < count) {
+                o << ", ";
+            }
+        }
+    }
+    o << "]";
+
+    return o;
+    }
+#endif
+
 
 #endif // QVECTOR_H
diff --git a/WebCore/src/kwq/qt/_qarray.h b/WebCore/src/kwq/qt/_qarray.h
index 0fe505c..439ded7 100644
--- a/WebCore/src/kwq/qt/_qarray.h
+++ b/WebCore/src/kwq/qt/_qarray.h
@@ -45,6 +45,7 @@
 #endif
 
 #include <KWQDef.h>
+#include <iostream>
 
 // -------------------------------------------------------------------------
 
diff --git a/WebCore/src/kwq/qt/_qvector.h b/WebCore/src/kwq/qt/_qvector.h
index 6995da1..ae18f62 100644
--- a/WebCore/src/kwq/qt/_qvector.h
+++ b/WebCore/src/kwq/qt/_qvector.h
@@ -45,6 +45,7 @@
 #endif
 
 #include <KWQDef.h>
+#include <iostream>
 
 // -------------------------------------------------------------------------
 
@@ -90,5 +91,32 @@ private:
     void  deleteItem( Item d ) { if ( del_item ) delete (type *)d; }
 };
 
+#ifdef _KWQ_IOSTREAM_
+template<class T>
+inline ostream &operator<<(ostream &o, const QVector<T> &p)
+{
+    int count = p.count();
+
+    o << "QVector: [size: " <<
+    count <<
+    "; items: ";
+
+    if (count == 0) {
+        // no-op
+    }
+    else {
+        for (int i = 0; i < count; i++) {
+            o << *(p[i]);
+            if (i < count) {
+                o << ", ";
+            }
+        }
+    }
+    o << "]";
+
+    return o;
+    }
+#endif
+
 
 #endif // QVECTOR_H

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list