diff qt/QGlobal.d @ 260:b5773ccab07d lifetime

closer
author maxter
date Fri, 18 Sep 2009 18:52:03 +0000
parents 17b5e13364b7
children
line wrap: on
line diff
--- a/qt/QGlobal.d	Thu Sep 17 16:28:41 2009 +0000
+++ b/qt/QGlobal.d	Fri Sep 18 18:52:03 2009 +0000
@@ -54,7 +54,7 @@
  
 version (D_Version2)
 {
-    void StackAlloc __stackAlloc()
+    StackAlloc __stackAlloc()
     {
         static StackAlloc instance; // thread-local instance
         // COMPILER BUG: No thread-local static constructors, Using lazy construction
@@ -77,7 +77,7 @@
         auto res = stackAllocInst.val;
         if (!res)
         {
-            res = new This(stackSize);
+            res = new StackAlloc(stackSize);
             stackAllocInst.val = res;
         }
         return res;