diff options
author | Hugo Parente Lima <hugo.pl@gmail.com> | 2011-01-24 15:19:40 -0200 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:12:55 -0300 |
commit | 70a863eb2da935505ffa325c1772b13f4a80bded (patch) | |
tree | 6e8b5bfb18d0e951d047b04ec2be29cd1bf09758 /generator/cppgenerator.h | |
parent | 9d36585f19bf858db10bee4c8b1933ed81301a98 (diff) |
Fix bug#633 - "bool of null QDate (possibly other empty QString/null QObj types?) returns True for empty instance; probably should be False"
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
Renato Araújo <renato.filho@openbossa.org>
Diffstat (limited to 'generator/cppgenerator.h')
-rw-r--r-- | generator/cppgenerator.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/generator/cppgenerator.h b/generator/cppgenerator.h index f2bc30e05..279ff8724 100644 --- a/generator/cppgenerator.h +++ b/generator/cppgenerator.h @@ -194,6 +194,7 @@ private: void writeRegisterType(QTextStream& s, const AbstractMetaClass* metaClass); void writeRegisterType(QTextStream& s, const AbstractMetaEnum* metaEnum); + bool hasBoolCast(const AbstractMetaClass* metaClass) const; // Maps special function names to function parameters and return types // used by CPython API in the sequence protocol. |