changeset 340:9fc85d7280ba

dynamic call fix
author Max Samukha <maxter@spambox.com>
date Mon, 10 May 2010 13:29:50 +0300
parents 4e31cbd9e20c
children 4920ef9206fe
files generator/cppimplgenerator.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/generator/cppimplgenerator.cpp	Sun May 09 00:52:49 2010 +0100
+++ b/generator/cppimplgenerator.cpp	Mon May 10 13:29:50 2010 +0300
@@ -2178,7 +2178,7 @@
                 s << INDENT
                   << "bool __do_static_call = __this_nativeId ? ";
                 if (java_class->isQObject())
-                    s << "QtD_QObjectEntity::getQObjectEntity((QObject*)__this_nativeId) : false;" << endl;
+                    s << "dynamic_cast<QtD_QObjectEntity*>((QObject*)__this_nativeId) : false;" << endl;
                 else
                     s << "__" << java_class->name() << "_entity(__this_nativeId) : false;" << endl;
             } else {