diff options
author | Hugo Parente Lima <hugo.lima@openbossa.org> | 2010-04-16 19:44:28 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.lima@openbossa.org> | 2010-04-22 19:45:25 -0300 |
commit | ffbe891de37f48aa3ae8210e306d7e10adf0df7d (patch) | |
tree | 48ab832016d1377a49967aa7fed77ec714205e2c /cppgenerator.cpp | |
parent | 3b75837ab1250e9cd2edde24c0e36c19ede7baf8 (diff) |
Add namespaces to the array of type indexes.
Diffstat (limited to 'cppgenerator.cpp')
-rw-r--r-- | cppgenerator.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/cppgenerator.cpp b/cppgenerator.cpp index 16f43ba25..cc960f4fc 100644 --- a/cppgenerator.cpp +++ b/cppgenerator.cpp @@ -2667,9 +2667,7 @@ void CppGenerator::writeClassRegister(QTextStream& s, const AbstractMetaClass* m s << "PyAPI_FUNC(void)" << endl; s << "init_" << metaClass->qualifiedCppName().replace("::", "_") << "(PyObject* module)" << endl; s << '{' << endl; - - if (!metaClass->isNamespace()) - s << INDENT << cpythonTypeNameExt(metaClass->typeEntry()) << " = reinterpret_cast<PyTypeObject*>(&" << cpythonTypeName(metaClass->typeEntry()) << ");" << endl << endl; + s << INDENT << cpythonTypeNameExt(metaClass->typeEntry()) << " = reinterpret_cast<PyTypeObject*>(&" << cpythonTypeName(metaClass->typeEntry()) << ");" << endl << endl; // class inject-code target/beginning if (!metaClass->typeEntry()->codeSnips().isEmpty()) { |