diff options
author | Hugo Lima <hugo.lima@openbossa.org> | 2009-12-29 15:51:44 -0200 |
---|---|---|
committer | Hugo Lima <hugo.lima@openbossa.org> | 2009-12-30 14:58:34 -0200 |
commit | d99271db59b6776bbba042dcf67b99942d0abf1b (patch) | |
tree | b4fd5a85c7ba164f1c1e19910440bda2d517bb91 /cppgenerator.cpp | |
parent | f6a9728c7fdba439c2fba826afbc38b45c94e047 (diff) |
Always use global method indexes in qt_metacalls instead of local indexes.
Diffstat (limited to 'cppgenerator.cpp')
-rw-r--r-- | cppgenerator.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cppgenerator.cpp b/cppgenerator.cpp index 9b9fdcd8e..4a9ba0f9d 100644 --- a/cppgenerator.cpp +++ b/cppgenerator.cpp @@ -468,8 +468,8 @@ void CppGenerator::writeMetaObjectMethod(QTextStream& s, const AbstractMetaClass s << "int " << wrapperClassName << "::qt_metacall(QMetaObject::Call call, int id, void** args)\n"; s << "{\n"; - s << INDENT << "id = " << metaClass->qualifiedCppName() << "::qt_metacall(call, id, args);\n"; - s << INDENT << "return id < 0 ? id : PySide::SignalManager::qt_metacall(this, call, id, args);\n"; + s << INDENT << "int result = " << metaClass->qualifiedCppName() << "::qt_metacall(call, id, args);\n"; + s << INDENT << "return result < 0 ? result : PySide::SignalManager::qt_metacall(this, call, id, args);\n"; s << "}\n\n"; } |