[Kde-bindings] numClasses to big (includes template classes) r1020606

Tobias Rautenkranz tobias at rautenkranz.ch
Wed Sep 9 00:26:34 UTC 2009


Hi

Not counting "no class" I get 615 entrys in the Qt class table
static Smoke::Class classes[] = {
[...]
    { "sockaddr", true, 0, 0, 0, 0 },   //615
};

but numClasses is set to 617 (should be 615):
qt_Smoke = new Smoke(
        "qt",
        __smokeqt::classes, 617,

The problem is that the generator skips template classes for the table, but 
they are included when classIndex.count() is used.

Attached is my quick hack. (I am not that confident that it will work when 
there is only one class)

Regards,
Tobias
-------------- next part --------------
A non-text attachment was scrubbed...
Name: template_numClasses.patch
Type: text/x-patch
Size: 1203 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-bindings/attachments/20090909/d3677317/attachment.patch>


More information about the Kde-bindings mailing list