diff cpp/qt_core/QVariant_shell.cpp @ 295:463563fc9e17 signals

more of QList. const functions in C++ are now const in D too. Drop of the store result feature, which was incompatible with const functions and introduced too much of the bloat in the generator.
author eldar
date Sun, 22 Nov 2009 11:01:19 +0000
parents 34a37904ff77
children 9784459f0750
line wrap: on
line diff
--- a/cpp/qt_core/QVariant_shell.cpp	Fri Nov 13 20:42:51 2009 +0000
+++ b/cpp/qt_core/QVariant_shell.cpp	Sun Nov 22 11:01:19 2009 +0000
@@ -22,6 +22,11 @@
     delete (QVariant *)ptr;
 }
 
+extern "C" DLL_PUBLIC void qtd_QVariant_call_destructor(QVariant *ptr)
+{
+    ptr->~QVariant();
+}
+
 QVariant_QtDShell::QVariant_QtDShell()
     : QVariant()
 {
@@ -961,3 +966,8 @@
 
 
 
+extern "C" DLL_PUBLIC void* qtd_QVariant_placed_copy(void* variant0, void* place) {
+    const QVariant&  __qt_variant0 = (const QVariant& ) *(QVariant *)variant0;
+    QVariant *result = new (place)QVariant((const QVariant& )__qt_variant0);
+    return (void *) result;
+}
\ No newline at end of file