aboutsummaryrefslogtreecommitdiffstats
path: root/shibokengenerator.cpp
diff options
context:
space:
mode:
authorHugo Lima <hugo.lima@openbossa.org>2010-01-11 17:48:17 -0200
committerHugo Lima <hugo.lima@openbossa.org>2010-01-13 13:55:02 -0200
commit1bfff6f2f2549dd3a4e068e5bd767f72d8c7bd8b (patch)
treef9fc2753fd512326e9cdd025bdb50327daf59248 /shibokengenerator.cpp
parent9e7c52bbef25fb118452aacae4f8e05ca5c9cf9a (diff)
Fix object initialization.
The C++ object instanciation was made in tp_init function instead of tp_new function. Now tp_new just create a useless python object which will be filled in the tp_init function. Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
Diffstat (limited to 'shibokengenerator.cpp')
-rw-r--r--shibokengenerator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/shibokengenerator.cpp b/shibokengenerator.cpp
index 9a72b2ee0..dc2db0944 100644
--- a/shibokengenerator.cpp
+++ b/shibokengenerator.cpp
@@ -199,7 +199,7 @@ QString ShibokenGenerator::cpythonFunctionName(const AbstractMetaFunction* func)
result = cpythonBaseName(func->ownerClass()->typeEntry());
result += '_';
if (func->isConstructor() || func->isCopyConstructor())
- result += "New";
+ result += "Init";
else if (func->isOperatorOverload())
result += ShibokenGenerator::pythonOperatorFunctionName(func);
else