summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.pl@gmail.com>2010-09-28 18:25:01 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2010-09-29 15:08:04 -0300
commit811a59ebe7be053d0c637310ba197b4e804677ef (patch)
tree4e247a455f4210a7a73c7dc695c2e06c128adf60
parent43bd25e442557d825b66d979ea9460edede442f4 (diff)
downloadshiboken-811a59ebe7be053d0c637310ba197b4e804677ef.tar.gz
shiboken-811a59ebe7be053d0c637310ba197b4e804677ef.tar.xz
shiboken-811a59ebe7be053d0c637310ba197b4e804677ef.zip
All type inherited from Containers are iterables.
-rw-r--r--generator/cppgenerator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/generator/cppgenerator.cpp b/generator/cppgenerator.cpp
index 8e805ea7..26fea059 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;