mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-24 19:02:59 +00:00
add braces around multi-line loop in QMetaObject::indexOfProperty()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
parent
46d70d6fd0
commit
6029990b42
1 changed files with 2 additions and 1 deletions
|
@ -701,12 +701,13 @@ int QMetaObject::indexOfClassInfo(const char *name) const
|
|||
int i = -1;
|
||||
const QMetaObject *m = this;
|
||||
while (m && i < 0) {
|
||||
for (i = priv(m->d.data)->classInfoCount-1; i >= 0; --i)
|
||||
for (i = priv(m->d.data)->classInfoCount-1; i >= 0; --i) {
|
||||
if (strcmp(name, m->d.stringdata
|
||||
+ m->d.data[priv(m->d.data)->classInfoData + 2*i]) == 0) {
|
||||
i += m->classInfoOffset();
|
||||
break;
|
||||
}
|
||||
}
|
||||
m = m->d.superdata;
|
||||
}
|
||||
return i;
|
||||
|
|
Loading…
Add table
Reference in a new issue