diff options
author | Hugo Parente Lima <hugo.pl@gmail.com> | 2010-09-28 18:25:01 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:07:19 -0300 |
commit | e8c26169f9c67a7cfc7c6e63d0e1a9b247505b72 (patch) | |
tree | 9268cb818a525dedd924c8ff91a062e763d7bd60 /generator | |
parent | 822bd79f87ad237b9e24b53f9048308200f06859 (diff) |
All type inherited from Containers are iterables.
Diffstat (limited to 'generator')
-rw-r--r-- | generator/cppgenerator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/generator/cppgenerator.cpp b/generator/cppgenerator.cpp index 8e805ea7d..26fea059b 100644 --- a/generator/cppgenerator.cpp +++ b/generator/cppgenerator.cpp @@ -2268,7 +2268,7 @@ bool CppGenerator::supportsSequenceProtocol(const AbstractMetaClass* metaClass) } const ComplexTypeEntry* baseType = metaClass->typeEntry()->baseContainerType(); - if (baseType && (reinterpret_cast<const ContainerTypeEntry*>(baseType)->type() == ContainerTypeEntry::ListContainer)) + if (baseType && baseType->isContainer()) return true; return false; |