diff d2/qtd/Signal.d @ 372:a032df77b6ab

Simple debug helper. Unittests. Meta-object for polymorphic non-QObjects
author Max Samukha <maxter@spambox.com>
date Thu, 08 Jul 2010 17:19:05 +0300
parents f69341b40588
children d0a103f25091 e67ce7c21758
line wrap: on
line diff
--- a/d2/qtd/Signal.d	Sun Jul 04 14:17:49 2010 +0100
+++ b/d2/qtd/Signal.d	Thu Jul 08 17:19:05 2010 +0300
@@ -105,9 +105,12 @@
            _a[${0}] = cast(void*)&_tmp${0};
         }
         else static if (isQObjectType!(Args[${0}]) || isObjectType!(Args[${0}]))
-           _a[${0}] = _t${0} ? &(_t${0}.__nativeId) : cast(void*)&_t${0};
+        {
+            void* _tmp${0} = _t${0} ? _t${0}.qtdNativeId : null;
+            _a[${0}] =  &_tmp${0};
+        }
         else static if (isValueType!(Args[${0}]))
-           _a[${0}] = _t${0}.__nativeId;
+           _a[${0}] = _t${0}.qtdNativeId;
         else
            _a[${0}] = cast(void*)&_t${0};
 
@@ -256,4 +259,4 @@
 template methodName(alias method)
 {
     enum methodName = removePrefix(__traits(identifier, method));
-}
\ No newline at end of file
+}