[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    playground/bindings/smokegenerator/generators/smoke
From:       Arno Rehn <kde () arnorehn ! de>
Date:       2009-06-29 22:17:07
Message-ID: 1246313827.309877.26187.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 989308 by arnorehn:

fix logic in stackItemField()
only look at enums that are valid


 M  +1 -1      helpers.cpp  
 M  +1 -1      writeClasses.cpp  


--- trunk/playground/bindings/smokegenerator/generators/smoke/helpers.cpp \
#989307:989308 @@ -289,7 +289,7 @@
 
 QString Util::stackItemField(const Type* type)
 {
-    if ((type->pointerDepth() > 0 || type->isRef() || type->isFunctionPointer() || \
!type->isIntegral()) && !type->getEnum()) +    if (type->pointerDepth() > 0 || \
type->isRef() || type->isFunctionPointer() || (!type->isIntegral() && \
!type->getEnum()))  return "s_class";
     if (type->getEnum())
         return "s_enum";
--- trunk/playground/bindings/smokegenerator/generators/smoke/writeClasses.cpp \
#989307:989308 @@ -278,7 +278,7 @@
     foreach (const BasicTypeDeclaration* decl, klass->children()) {
         if (!(e = dynamic_cast<const Enum*>(decl)))
             continue;
-        if (e->access() == Access_private)
+        if (e->access() == Access_private || !e->isValid())
             continue;
         enumFound = true;
         


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic