[Kde-bindings] KDE/kdebindings/generator/generators/smoke
Arno Rehn
kde at arnorehn.de
Sun Oct 18 15:00:16 UTC 2009
SVN commit 1037193 by arnorehn:
Apply two patches from Tobias Rautenkranz:
* Add overloads for functions in a namespace.
* Remove the unused xenum prototypes for voidp classes.
Thanks!
CCMAIL: kde-bindings at kde.org
M +6 -0 helpers.cpp
M +1 -1 writeSmokeDataFile.cpp
--- trunk/KDE/kdebindings/generator/generators/smoke/helpers.cpp #1037192:1037193
@@ -130,6 +130,12 @@
// map this method to the function, so we can later retrieve the header it was defined in
globalFunctionMap[&parent->methods().last()] = &fn;
+ int methIndex = parent->methods().length() - 1;
+ addOverloads(meth);
+ // handle the methods appended by addOverloads()
+ for (int i = parent->methods().length() - 1; i > methIndex; --i)
+ globalFunctionMap[&parent->methods()[i]] = &fn;
+
(*usedTypes) << meth.type();
foreach (const Parameter& param, meth.parameters())
(*usedTypes) << param.type();
--- trunk/KDE/kdebindings/generator/generators/smoke/writeSmokeDataFile.cpp #1037192:1037193
@@ -201,7 +201,7 @@
continue;
if (it.value().parent() && !externalClasses.contains(it.value().parent()) && it.value().access() != Access_private) {
QString smokeClassName = it.value().parent()->toString();
- if (enumClassesHandled.contains(smokeClassName))
+ if (enumClassesHandled.contains(smokeClassName) || Options::voidpTypes.contains(smokeClassName))
continue;
enumClassesHandled << smokeClassName;
smokeClassName.replace("::", "__");
More information about the Kde-bindings
mailing list