Mercurial > projects > qtd
diff generator/abstractmetalang.h @ 260:b5773ccab07d lifetime
closer
author | maxter |
---|---|
date | Fri, 18 Sep 2009 18:52:03 +0000 |
parents | 515d6e1c7b10 |
children | 90131f64c9c9 |
line wrap: on
line diff
--- a/generator/abstractmetalang.h Thu Sep 17 16:28:41 2009 +0000 +++ b/generator/abstractmetalang.h Fri Sep 18 18:52:03 2009 +0000 @@ -786,8 +786,10 @@ bool hasVirtualSlots() const { return m_has_virtual_slots; } bool hasVirtualFunctions() const { return !isFinal() && m_has_virtuals; } - bool hasVirtualDestructor() const { return m_has_virtual_destructor; } + bool hasVirtualDestructor() const { return m_has_virtual_destructor + || (m_base_class && m_base_class->hasVirtualDestructor()); } bool setHasVirtualDestructor(bool value) { m_has_virtual_destructor = value; } + bool isPolymorphic() const { return hasVirtualFunctions() || hasVirtualDestructor(); } bool hasProtectedFunctions() const; QList<TypeEntry *> templateArguments() const { return m_template_args; }