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

List:       kde-bindings
Subject:    [Kde-bindings] KDE/kdebindings/generator/generators/smoke
From:       Arno Rehn <kde () arnorehn ! de>
Date:       2009-09-09 15:12:19
Message-ID: 1252509139.651353.15728.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1021582 by arnorehn:

Fix the class count.
Thanks to Tobias for reptorting this bug.

CCMAIL: kde-bindings@kde.org
CCMAIL: tobias@rautenkranz.ch



 M  +6 -1      writeSmokeDataFile.cpp  


--- trunk/KDE/kdebindings/generator/generators/smoke/writeSmokeDataFile.cpp \
#1021581:1021582 @@ -229,7 +229,11 @@
     out << "// Name, external, index into inheritanceList, method dispatcher, enum \
dispatcher, class flags\n";  out << "static Smoke::Class classes[] = {\n";
     out << "    { 0L, false, 0, 0, 0, 0 },\t// 0 (no class)\n";
+    int classCount = 0;
     for (QMap<QString, int>::const_iterator iter = classIndex.constBegin(); iter != \
classIndex.constEnd(); iter++) { +        if (!iter.value())
+            continue;
+        
         Class* klass = &classes[iter.key()];
         if (klass->isTemplate())
             continue;
@@ -251,6 +255,7 @@
             out << flags;
             out << " },\t//" << iter.value() << "\n";
         }
+        classCount = iter.value();
     }
     out << "};\n\n";
     
@@ -603,7 +608,7 @@
     out << "    if (initialized) return;\n";
     out << "    " << Options::module << "_Smoke = new Smoke(\n";
     out << "        \"" << Options::module << "\",\n";
-    out << "        " << smokeNamespaceName << "::classes, " << classIndex.count() \
<< ",\n"; +    out << "        " << smokeNamespaceName << "::classes, " << classCount \
                << ",\n";
     out << "        " << smokeNamespaceName << "::methods, " << methodCount << \
                ",\n";
     out << "        " << smokeNamespaceName << "::methodMaps, " << methodMapCount << \
                ",\n";
     out << "        " << smokeNamespaceName << "::methodNames, " << \
methodNames.count() + 1 << ",\n"; _______________________________________________
Kde-bindings mailing list
Kde-bindings@kde.org
https://mail.kde.org/mailman/listinfo/kde-bindings


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

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