Mercurial > projects > qtd
diff generator/dgenerator.cpp @ 184:7d9db724ee1d
QObject is now non GC'ed, to better integrate to Qt memory management
author | eldar |
---|---|
date | Sat, 04 Jul 2009 13:04:46 +0000 |
parents | d3f4f14d43a5 |
children | 4fcf7ba2a791 |
line wrap: on
line diff
--- a/generator/dgenerator.cpp Fri Jul 03 20:53:07 2009 +0000 +++ b/generator/dgenerator.cpp Sat Jul 04 13:04:46 2009 +0000 @@ -2845,13 +2845,14 @@ const ComplexTypeEntry *ctype = static_cast<const ComplexTypeEntry *>(type->typeEntry()); if(ctype->isAbstract()) type_name = type_name + "_ConcreteWrapper"; -/* + s << INDENT << "scope " << arg_name << "_so = new StackObject!(" << type_name << ");" << endl << INDENT << "auto " << arg_name << "_d_ref = " << arg_name << "_so(" << arg_name <<", true);" << endl << INDENT << arg_name << "_d_ref.__no_real_delete = true;"; - */ +/* s << INDENT << "scope " << arg_name << "_d_ref = new " << type_name << "(" << arg_name <<", true);" << endl << INDENT << arg_name << "_d_ref.__no_real_delete = true;"; +*/ } s << endl; }