From 50d1b114b35f34f97aefca1f42c3dbf9327e0d3a Mon Sep 17 00:00:00 2001 From: Hugo Parente Lima Date: Tue, 12 Apr 2011 15:55:49 -0300 Subject: Fix bug 723 - "Missing QAbstractFileEngine.read and QAbstractFileEngine.readLine" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewer: Renato Araújo Marcelo Lira --- generator/cppgenerator.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'generator') diff --git a/generator/cppgenerator.cpp b/generator/cppgenerator.cpp index 67ea7e370..8a9ee4571 100644 --- a/generator/cppgenerator.cpp +++ b/generator/cppgenerator.cpp @@ -844,7 +844,7 @@ void CppGenerator::writeVirtualMethodNative(QTextStream &s, const AbstractMetaFu if (invalidateReturn) { s << INDENT << "if (invalidadeArg0)" << endl; Indentation indentation(INDENT); - s << INDENT << "Shiboken::Object::invalidate(" << PYTHON_RETURN_VAR ".object());" << endl; + s << INDENT << "Shiboken::Object::releaseOwnership(" << PYTHON_RETURN_VAR ".object());" << endl; } foreach (FunctionModification funcMod, func->modifications()) { @@ -2098,7 +2098,7 @@ void CppGenerator::writeMethodCall(QTextStream& s, const AbstractMetaFunction* f if (func->isBinaryOperator()) { if (func->isReverseOperator()) std::swap(firstArg, secondArg); - + if (((op == "++") || (op == "--")) && !func->isReverseOperator()) { s << endl << INDENT << "for(int i=0; i < " << secondArg << "; i++, " << firstArg << op << ");" << endl; mc << firstArg; -- cgit v1.2.3