diff options
author | Hugo Parente Lima <hugo.pl@gmail.com> | 2011-04-12 15:55:49 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:15:20 -0300 |
commit | 50d1b114b35f34f97aefca1f42c3dbf9327e0d3a (patch) | |
tree | 8aaeca5edbdd68a68f9db0387840584f1dad141e | |
parent | 68dde475dd98b191a6bd3d6151cb7ab5f6410242 (diff) |
Fix bug 723 - "Missing QAbstractFileEngine.read and QAbstractFileEngine.readLine"
Reviewer: Renato Araújo <renato.filho@openbossa.org>
Marcelo Lira <marcelo.lira@openbossa.org>
-rw-r--r-- | generator/cppgenerator.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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; |