aboutsummaryrefslogtreecommitdiffstats
path: root/cppgenerator.cpp
diff options
context:
space:
mode:
authorHugo Lima <hugo.lima@openbossa.org>2010-01-14 16:02:31 -0200
committerHugo Lima <hugo.lima@openbossa.org>2010-01-14 16:40:55 -0200
commit8657f7eff10c27bf450bb742e377144d2a08019f (patch)
tree4cbf834b1199aa76f5d31f67a8a7031658b1b18b /cppgenerator.cpp
parent370a3b6cf2a57bf63c1d4041a0de5085485b37fe (diff)
Changed prefix of local generated C functions to avoid name clash with bindinded method names.
Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
Diffstat (limited to 'cppgenerator.cpp')
-rw-r--r--cppgenerator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/cppgenerator.cpp b/cppgenerator.cpp
index a7cf6d388..88253114a 100644
--- a/cppgenerator.cpp
+++ b/cppgenerator.cpp
@@ -485,7 +485,7 @@ void CppGenerator::writeConstructorWrapper(QTextStream& s, const AbstractMetaFun
QString className = cpythonTypeName(metaClass);
m_currentErrorCode = -1;
- s << "int" << endl;
+ s << "static int" << endl;
s << cpythonFunctionName(rfunc) << "(PyObject* self, PyObject* args, PyObject* kwds)" << endl;
s << '{' << endl;