diff options
author | Lauro Neto <lauro.neto@openbossa.org> | 2010-02-04 15:20:46 -0300 |
---|---|---|
committer | Hugo Lima <hugo.lima@openbossa.org> | 2010-02-04 17:05:11 -0200 |
commit | 22f1f61fec7cff3721c895b3d3071943405c57fa (patch) | |
tree | b7bba440e9125db317dde124d8e013cce2b94387 /cppgenerator.cpp | |
parent | 46ea7e162321028a786dfc02cc8325cb20f2d957 (diff) |
Fix Weakreference support
- Flag for types with private destructor
- Cleaning weakrefs in normal destructor
Reviewed by Hugo Parente <hugo.lima@openbossa.org>
Diffstat (limited to 'cppgenerator.cpp')
-rw-r--r-- | cppgenerator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cppgenerator.cpp b/cppgenerator.cpp index c13ded128..605963e70 100644 --- a/cppgenerator.cpp +++ b/cppgenerator.cpp @@ -1540,7 +1540,7 @@ void CppGenerator::writeClassDefinition(QTextStream& s, const AbstractMetaClass* baseClassName.append("Shiboken::SbkBaseWrapper_Type"); if (metaClass->isNamespace() || metaClass->hasPrivateDestructor()) { - tp_flags = "Py_TPFLAGS_HAVE_CLASS"; + tp_flags = "Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES"; tp_dealloc = metaClass->hasPrivateDestructor() ? "(destructor)Shiboken::SbkBaseWrapper_Dealloc_PrivateDtor" : "0"; tp_init = "0"; |