Mercurial > projects > qtd
comparison generator/cppimplgenerator.cpp @ 340:9fc85d7280ba
dynamic call fix
author | Max Samukha <maxter@spambox.com> |
---|---|
date | Mon, 10 May 2010 13:29:50 +0300 |
parents | 0cc996b7a601 |
children | 18bd68f586c6 |
comparison
equal
deleted
inserted
replaced
339:4e31cbd9e20c | 340:9fc85d7280ba |
---|---|
2176 function_prefix = "__override_"; | 2176 function_prefix = "__override_"; |
2177 extra_param.append("__do_static_call"); | 2177 extra_param.append("__do_static_call"); |
2178 s << INDENT | 2178 s << INDENT |
2179 << "bool __do_static_call = __this_nativeId ? "; | 2179 << "bool __do_static_call = __this_nativeId ? "; |
2180 if (java_class->isQObject()) | 2180 if (java_class->isQObject()) |
2181 s << "QtD_QObjectEntity::getQObjectEntity((QObject*)__this_nativeId) : false;" << endl; | 2181 s << "dynamic_cast<QtD_QObjectEntity*>((QObject*)__this_nativeId) : false;" << endl; |
2182 else | 2182 else |
2183 s << "__" << java_class->name() << "_entity(__this_nativeId) : false;" << endl; | 2183 s << "__" << java_class->name() << "_entity(__this_nativeId) : false;" << endl; |
2184 } else { | 2184 } else { |
2185 option = OriginalName; | 2185 option = OriginalName; |
2186 } | 2186 } |