From e8c26169f9c67a7cfc7c6e63d0e1a9b247505b72 Mon Sep 17 00:00:00 2001 From: Hugo Parente Lima Date: Tue, 28 Sep 2010 18:25:01 -0300 Subject: All type inherited from Containers are iterables. --- generator/cppgenerator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'generator') 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(baseType)->type() == ContainerTypeEntry::ListContainer)) + if (baseType && baseType->isContainer()) return true; return false; -- cgit v1.2.3