summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.pl@gmail.com>2010-11-18 17:40:02 -0200
committerHugo Parente Lima <hugo.pl@gmail.com>2010-11-18 18:45:59 -0200
commit117a65fa1f9300151bb7dc5f33d4210135d615b7 (patch)
treed94b05a0a5fcee8480579a54968bbc8940761666
parent157c00f271b7a7cb963900e7b967070ac0e09c41 (diff)
downloadshiboken-117a65fa1f9300151bb7dc5f33d4210135d615b7.tar.gz
shiboken-117a65fa1f9300151bb7dc5f33d4210135d615b7.tar.xz
shiboken-117a65fa1f9300151bb7dc5f33d4210135d615b7.zip
Replaces PySide::deleteDynamicQMetaObject by Shiboken::callCppDestructor<DynamicQMetaObject>
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Lauro Moura <lauro.neto@openbossa.org>
-rw-r--r--generator/cppgenerator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/generator/cppgenerator.cpp b/generator/cppgenerator.cpp
index dbe5479d..25584ce3 100644
--- a/generator/cppgenerator.cpp
+++ b/generator/cppgenerator.cpp
@@ -785,7 +785,7 @@ void CppGenerator::writeMetaObjectMethod(QTextStream& s, const AbstractMetaClass
Indentation indentation2(INDENT);
s << INDENT << "m_metaObject = PySide::DynamicQMetaObject::createBasedOn((PyObject*)pySelf, pySelf->ob_type, &"
<< metaClass->qualifiedCppName() << "::staticMetaObject);" << endl
- << INDENT << "Shiboken::setTypeUserData(pySelf, m_metaObject, PySide::deleteDynamicQMetaObject);" << endl;
+ << INDENT << "Shiboken::setTypeUserData(pySelf, m_metaObject, &Shiboken::callCppDestructor<PySide::DynamicQMetaObject>);" << endl;
}
s << INDENT << "} else {" << endl;
{