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

List:       kde-commits
Subject:    [smokegen] generators/smoke: use the correct smoke module in parent introspection
From:       Arno Rehn <arno () arnorehn ! de>
Date:       2013-06-10 11:22:24
Message-ID: 20130610112224.665C4A6075 () git ! kde ! org
[Download RAW message or body]

Git commit f733bdc13429185934c982fa67619d2c7ea1a3cd by Arno Rehn.
Committed on 10/06/2013 at 13:21.
Pushed by arnorehn into branch 'master'.

use the correct smoke module in parent introspection

M  +4    -4    generators/smoke/helpers.cpp

http://commits.kde.org/smokegen/f733bdc13429185934c982fa67619d2c7ea1a3cd

diff --git a/generators/smoke/helpers.cpp b/generators/smoke/helpers.cpp
index f6a12e2..201cd94 100644
--- a/generators/smoke/helpers.cpp
+++ b/generators/smoke/helpers.cpp
@@ -159,17 +159,17 @@ static bool isRepeating(const QList<Smoke*>& parentModules, \
const char* classNam  foreach (Smoke* smoke, parentModules) {
         Smoke::ModuleIndex methodIndex = smoke->findMethod(className, \
mungedName.toLatin1().constData());  if (methodIndex.index) {
-            Smoke::Index index = smoke->methodMaps[methodIndex.index].method;
+            Smoke::Index index = \
methodIndex.smoke->methodMaps[methodIndex.index].method;  if (index >= 0) {
-                if (compareArgs(method, smoke->methods[index], smoke)) {
+                if (compareArgs(method, methodIndex.smoke->methods[index], \
methodIndex.smoke)) {  return true;
                 }
                 continue;
             }
             index = -index;
             Smoke::Index i;
-            while ((i = smoke->ambiguousMethodList[index++]) != 0) {
-                if (compareArgs(method, smoke->methods[i], smoke)) {
+            while ((i = methodIndex.smoke->ambiguousMethodList[index++]) != 0) {
+                if (compareArgs(method, methodIndex.smoke->methods[i], \
methodIndex.smoke)) {  return true;
                 }
             }


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

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