summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2010-03-23 10:43:25 -0300
committerMarcelo Lira <marcelo.lira@openbossa.org>2010-03-23 11:00:37 -0300
commita38c294732542b8d25ca1a34856c2ffa4fa2b1ac (patch)
tree4b6afe2ff19846ed4837fe3c2d799a3bfcd2be4e
parenta0a406b06c46f3f8f678e57807037d7a8d34d08f (diff)
downloadshiboken-a38c294732542b8d25ca1a34856c2ffa4fa2b1ac.tar.gz
shiboken-a38c294732542b8d25ca1a34856c2ffa4fa2b1ac.tar.xz
shiboken-a38c294732542b8d25ca1a34856c2ffa4fa2b1ac.zip
Enum's __invert__ method must use 'self' argument.
Reviewed by Anderson Lizardo <anderson.lizardo@openbossa.org> Reviewed by Hugo Parente <hugo.lima@openbossa.org>
-rw-r--r--cppgenerator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/cppgenerator.cpp b/cppgenerator.cpp
index 719d4560..6947cfa7 100644
--- a/cppgenerator.cpp
+++ b/cppgenerator.cpp
@@ -2625,7 +2625,7 @@ void CppGenerator::writeFlagsUnaryOperator(QTextStream& s, const AbstractMetaEnu
{
Indentation indent(INDENT);
s << INDENT << cppOpName << " Shiboken::Converter< ";
- s << flagsEntry->originalName() << " >::toCpp(arg)" << endl;
+ s << flagsEntry->originalName() << " >::toCpp(self)" << endl;
}
s << INDENT << ");" << endl;
s << '}' << endl << endl;