aboutsummaryrefslogtreecommitdiffstats
path: root/libpyside/dynamicqmetaobject.cpp
diff options
context:
space:
mode:
authorrenatofilho <renato.filho@openbossa.org>2010-09-16 14:14:45 -0300
committerrenatofilho <renato.filho@openbossa.org>2010-09-16 17:12:34 -0300
commit551f6b9c7240d1f68e50edcec0fc41969beaef1d (patch)
tree3e6c2878b7b59f3aeb129a5581529ddf4627e760 /libpyside/dynamicqmetaobject.cpp
parentc06110168c39e5c44b9b11ff13fd6f9795199df3 (diff)
Fixed connection cleanup function.
Reviewer: Hugo Parente Lima <hugo.pl@gmail.com> Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'libpyside/dynamicqmetaobject.cpp')
-rw-r--r--libpyside/dynamicqmetaobject.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/libpyside/dynamicqmetaobject.cpp b/libpyside/dynamicqmetaobject.cpp
index c2e7f04bb..b97ae0dc3 100644
--- a/libpyside/dynamicqmetaobject.cpp
+++ b/libpyside/dynamicqmetaobject.cpp
@@ -322,11 +322,10 @@ void DynamicQMetaObject::addSlot(const char* slot, const char* type)
//search for a empty space
MethodData blank;
i = qFind(m_slots.begin(), m_slots.end(), blank);
- if (i != m_slots.end()) {
+ if (i != m_slots.end())
*i = MethodData(slot, type);
- } else {
+ else
m_slots << MethodData(slot, type);
- }
updateMetaObject();
}
@@ -438,7 +437,6 @@ void DynamicQMetaObject::writeMethodsData(QLinkedList<MethodData>& methods,
if (iMethod != methods.end() && ((*iMethod).signature().size() > 0) ) {
(*data)[index++] = registerString((*iMethod).signature(), strings); // func name
mType = (*iMethod).type();
- iMethod++;
} else {
(*data)[index++] = null_index; // func name
}
@@ -446,6 +444,8 @@ void DynamicQMetaObject::writeMethodsData(QLinkedList<MethodData>& methods,
(*data)[index++] = (mType.size() > 0 ? registerString(mType, strings) : null_index); // normalized type
(*data)[index++] = null_index; // tags
(*data)[index++] = flags;
+ if (iMethod != methods.end())
+ iMethod++;
}
*prtIndex = index;