[Kde-bindings] KDE/kdebindings/generator/generators/smoke
Chris Michael Burel
chrisburel at gmail.com
Fri Sep 3 00:55:26 UTC 2010
SVN commit 1171183 by burel:
Use size() instead of length() to get the size of a QList. This is to support Qt <4.5.0.
CCMAIL: kde-bindings at kde.org
M +2 -2 helpers.cpp
--- trunk/KDE/kdebindings/generator/generators/smoke/helpers.cpp #1171182:1171183
@@ -131,10 +131,10 @@
// 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;
+ int methIndex = parent->methods().size() - 1;
addOverloads(meth);
// handle the methods appended by addOverloads()
- for (int i = parent->methods().length() - 1; i > methIndex; --i)
+ for (int i = parent->methods().size() - 1; i > methIndex; --i)
globalFunctionMap[&parent->methods()[i]] = &fn;
(*usedTypes) << meth.type();
More information about the Kde-bindings
mailing list