aboutsummaryrefslogtreecommitdiffstats
path: root/generator
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2011-08-06 17:10:54 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-08 16:17:09 -0300
commit05e7ecede5304ee56a805c7b5a10d3df11cf8952 (patch)
tree02980a49df0f0b7b5224dbcf1425e1f2396dfd83 /generator
parent6bd9d58b31cabedbce5131548d2447341df76e21 (diff)
Added tests for a class that its only constructor is the copy one.
This simulates a situation found in QtWebKit's QWebDatabase and QWebSecurityOrigin classes. Reviewed by Luciano Wolf <luciano.wolf@openbossa.org> Reviewed by Renato Araújo <renato.filho@openbossa.org>
Diffstat (limited to 'generator')
-rw-r--r--generator/cppgenerator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/generator/cppgenerator.cpp b/generator/cppgenerator.cpp
index 70290253d..4446ff2a7 100644
--- a/generator/cppgenerator.cpp
+++ b/generator/cppgenerator.cpp
@@ -2892,7 +2892,7 @@ void CppGenerator::writeGetterFunction(QTextStream& s, const AbstractMetaField*
s << INDENT << "PyObject* value = ";
if (newWrapperSameObject) {
- s << "Shiboken::Object::newObject((SbkObjectType*)" << cpythonTypeNameExt(fieldType->typeEntry());
+ s << "Shiboken::Object::newObject((SbkObjectType*)" << cpythonTypeNameExt(fieldType);
s << ", " << cppField << ", false, true);" << endl;
s << INDENT << "Shiboken::Object::setParent(" PYTHON_SELF_VAR ", value)";
} else {