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

List:       kde-commits
Subject:    KDE/kdebindings/generator/generators/smoke
From:       Chris Michael Burel <chrisburel () gmail ! com>
Date:       2010-09-03 0:55:26
Message-ID: 20100903005526.4F984AC883 () svn ! kde ! org
[Download RAW message or body]

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@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();
[prev in list] [next in list] [prev in thread] [next in thread] 

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