From 1bfff6f2f2549dd3a4e068e5bd767f72d8c7bd8b Mon Sep 17 00:00:00 2001 From: Hugo Lima Date: Mon, 11 Jan 2010 17:48:17 -0200 Subject: 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 --- shibokengenerator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'shibokengenerator.cpp') 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 -- cgit v1.2.3