aboutsummaryrefslogtreecommitdiffstats
path: root/cppgenerator.h
diff options
context:
space:
mode:
authorLauro Neto <lauro.neto@openbossa.org>2010-02-23 17:38:45 -0300
committerMarcelo Lira <marcelo.lira@openbossa.org>2010-02-23 20:59:47 -0300
commit32397a568e20d5b6860520cd45ff0833f27a8642 (patch)
treece133a45f25fecc93f5eb5c6b31ee4b7e8b5f767 /cppgenerator.h
parent506a97bad2ab5cf9b09f735a59f9dcea68bbd276 (diff)
Remove inplace operators of flags
Enums and flags are now treated as immutable types, so using a inplace operator will create a new flag object and attribute it to the name which the operator is called. flags = Qt.Window flags |= Qt.Dialog # This will create a new object and attribute # to flags This was done in order to prevent changing the original objects as the the inplace operator in line2 would modify the object pointed by Qt.Window. Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
Diffstat (limited to 'cppgenerator.h')
-rw-r--r--cppgenerator.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/cppgenerator.h b/cppgenerator.h
index e11be7e8f..046d0c33a 100644
--- a/cppgenerator.h
+++ b/cppgenerator.h
@@ -143,8 +143,6 @@ private:
void writeFlagsNumberMethodsDefinition(QTextStream& s, const AbstractMetaEnum* cppEnum);
void writeFlagsBinaryOperator(QTextStream& s, const AbstractMetaEnum* cppEnum,
QString pyOpName, QString cppOpName);
- void writeFlagsInplaceOperator(QTextStream& s, const AbstractMetaEnum* cppEnum,
- QString pyOpName, QString cppOpName);
void writeFlagsUnaryOperator(QTextStream& s, const AbstractMetaEnum* cppEnum,
QString pyOpName, QString cppOpName, bool boolResult = false);