aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRenato Filho <renato.filho@openbossa.org>2011-04-07 18:01:58 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-08 16:15:20 -0300
commitb9305d9ab242d81a807ba5d0007b0e8dd4feb3f4 (patch)
tree645e1872b528a06da3f4bc5aa51b357672c52ea5
parent4869f03f9463b678b104f4eca4ad7d03be2ef84a (diff)
Fixed 'operator--'.
-rw-r--r--generator/cppgenerator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/generator/cppgenerator.cpp b/generator/cppgenerator.cpp
index 7cb67253a..c15d311c6 100644
--- a/generator/cppgenerator.cpp
+++ b/generator/cppgenerator.cpp
@@ -2093,7 +2093,7 @@ void CppGenerator::writeMethodCall(QTextStream& s, const AbstractMetaFunction* f
std::swap(firstArg, secondArg);
if (((op == "++") || (op == "--")) && !func->isReverseOperator()) {
- s << endl << INDENT << "for(int i=0; i < " << secondArg << "; i++, " << firstArg << "++);" << endl;
+ s << endl << INDENT << "for(int i=0; i < " << secondArg << "; i++, " << firstArg << op << ");" << endl;
mc << firstArg;
} else {
mc << firstArg << ' ' << op << ' ' << secondArg;