diff generator/cppgenerator.cpp @ 257:17b5e13364b7 lifetime

(none)
author maxter
date Wed, 16 Sep 2009 13:56:02 +0000
parents cf8a415f3f32
children 5bcfe9e7db7f
line wrap: on
line diff
--- a/generator/cppgenerator.cpp	Mon Aug 31 12:07:28 2009 +0000
+++ b/generator/cppgenerator.cpp	Wed Sep 16 13:56:02 2009 +0000
@@ -230,7 +230,7 @@
     s << "(";
     const AbstractMetaClass *owner = java_function->ownerClass();
 
-    bool has_d_ptr = java_function->isConstructor() && owner && (owner->hasVirtualFunctions()/* || owner->typeEntry()->isObject()*/ );
+    bool has_d_ptr = java_function->isConstructor() && owner && owner->typeEntry()->isObject();
     const AbstractMetaArgumentList arg_list = java_function->arguments();
     if (has_d_ptr) {
         s << "void *d_ptr";