mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-24 19:02:59 +00:00
use foreach() for iteration in qDBusParametersForMethod() function
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
parent
a54d9d9820
commit
c1c41495ae
1 changed files with 1 additions and 4 deletions
|
@ -120,10 +120,7 @@ int qDBusParametersForMethod(const QMetaMethod &mm, QList<int>& metaTypes)
|
|||
metaTypes.append(0); // return type
|
||||
int inputCount = 0;
|
||||
bool seenMessage = false;
|
||||
QList<QByteArray>::ConstIterator it = parameterTypes.constBegin();
|
||||
QList<QByteArray>::ConstIterator end = parameterTypes.constEnd();
|
||||
for ( ; it != end; ++it) {
|
||||
const QByteArray &type = *it;
|
||||
foreach (const QByteArray &type, parameterTypes) {
|
||||
if (type.endsWith('*')) {
|
||||
//qWarning("Could not parse the method '%s'", mm.signature());
|
||||
// pointer?
|
||||
|
|
Loading…
Add table
Reference in a new issue