comparison d2/qtd/QMetaTypeImpl.d @ 404:b64ca517a6b7

Removed stray ?auto? to make QVariant(false) compile. Bitbucket: Fixes #2.
author David Nadlinger <code@klickverbot.at>
date Thu, 17 Mar 2011 21:49:27 +0100
parents a032df77b6ab
children
comparison
equal deleted inserted replaced
403:8564ab82ea42 404:b64ca517a6b7
29 */ 29 */
30 template MetaTypeOps(T) 30 template MetaTypeOps(T)
31 { 31 {
32 static void* construct(void* copy) 32 static void* construct(void* copy)
33 { 33 {
34 auto T* p = cast(T*)GC.malloc(T.sizeof); 34 T* p = cast(T*)GC.malloc(T.sizeof);
35 if (!p) 35 if (!p)
36 onOutOfMemoryError(); 36 onOutOfMemoryError();
37 37
38 if (copy) 38 if (copy)
39 *p = *cast(T*)copy; 39 *p = *cast(T*)copy;