aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRenato Filho <renato.filho@openbossa.org>2011-10-05 19:31:11 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-08 16:18:20 -0300
commit26e1ee103d1fdec28751acd09664fe6afabc2439 (patch)
treecd8fdc94b971bb7c4752b4434c78640345f156c2
parent47d101967ce384752af1a21859ecff6eb42078f7 (diff)
Fix python 2.x generation.
-rw-r--r--generator/cppgenerator.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/generator/cppgenerator.cpp b/generator/cppgenerator.cpp
index 380325dc8..691d2943e 100644
--- a/generator/cppgenerator.cpp
+++ b/generator/cppgenerator.cpp
@@ -3972,7 +3972,7 @@ void CppGenerator::finishGeneration()
s << "#ifdef IS_PY3K" << endl;
if (usePySideExtensions()) {
- s << "static int " << moduleName() << "_moduleShutdown(PyObject*)" << endl
+ s << "static int " << moduleName() << "_moduleTraverse(PyObject*, visitproc, void *)" << endl
<< "{" << endl
<< INDENT << "PySide::runCleanupFunctions();" << endl
<< "}" << endl << endl;
@@ -3985,13 +3985,13 @@ void CppGenerator::finishGeneration()
s << " /* m_size */ -1," << endl;
s << " /* m_methods */ " << moduleName() << "_methods," << endl;
s << " /* m_reload */ 0," << endl;
- s << " /* m_traverse */ 0," << endl;
if (usePySideExtensions())
- s << " /* m_clear */ " << moduleName() << "_moduleShutdown," << endl;
+ s << " /* m_traverse */ " << moduleName() << "_moduleTraverse," << endl;
else
- s << " /* m_clear */ 0," << endl;
+ s << " /* m_traverse */ 0," << endl;
+ s << " /* m_clear */ 0," << endl;
s << " /* m_free */ 0" << endl;
s << "};" << endl << endl;
s << "#endif" << endl;