diff qt/core/QList.d @ 323:7a3c43424dca signals

make all examples compile with new signals/slots
author eldar_ins@eldar-laptop
date Mon, 28 Dec 2009 16:28:55 +0500
parents ce07227f00c1
children 115130499d78
line wrap: on
line diff
--- a/qt/core/QList.d	Sun Dec 27 21:13:38 2009 +0500
+++ b/qt/core/QList.d	Mon Dec 28 16:28:55 2009 +0500
@@ -368,15 +368,17 @@
     }
 
 public:
+    /*
     void output()
     {
         writeln("QList atomic ", d.ref_.load());
     }
+    */
     
     static QList!T opCall()
     {
         QList!T res;
-        writeln("QList opCall");
+//        writeln("QList opCall");
         
         res.d = &QListData.shared_null;
         res.d.ref_.increment();
@@ -386,7 +388,7 @@
 
     this(this)
     {
-        writeln("QList postblit");
+//        writeln("QList postblit");
         d.ref_.increment();
         if (!d.sharable)
             detach_helper();
@@ -394,14 +396,14 @@
 
     ~this()
     {
-        writeln("QList ~this");
+//        writeln("QList ~this");
         if (d && !d.ref_.decrement())
             free(d);
     }
 
     ref QList!T opAssign(const ref QList!T l)
     {
-        writeln("QList opAssign");
+//        writeln("QList opAssign");
         if (d != l.d) {
             l.d.ref_.increment();
             if (!d.ref_.decrement())
@@ -505,7 +507,7 @@
     
     void node_copy(Node *from, Node *to, Node *src)
     {
-        writeln("QList node_copy");
+//        writeln("QList node_copy");
         static if (isQObjectType!T || isObjectType!T)
             {} // ensure to do nothing. copying only a pointer
         else static if(is(T == string))
@@ -546,7 +548,7 @@
     
     void free(QListData.Data* data)
     {
-        writeln("QList data destroyed");
+//        writeln("QList data destroyed");
         node_destruct(cast(Node*)(data.array.ptr + data.begin),
                       cast(Node*)(data.array.ptr + data.end));
         if (data.ref_.load() == 0)