mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-25 03:12:56 +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;
|
int i = -1;
|
||||||
const QMetaObject *m = this;
|
const QMetaObject *m = this;
|
||||||
while (m && i < 0) {
|
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
|
if (strcmp(name, m->d.stringdata
|
||||||
+ m->d.data[priv(m->d.data)->classInfoData + 2*i]) == 0) {
|
+ m->d.data[priv(m->d.data)->classInfoData + 2*i]) == 0) {
|
||||||
i += m->classInfoOffset();
|
i += m->classInfoOffset();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
m = m->d.superdata;
|
m = m->d.superdata;
|
||||||
}
|
}
|
||||||
return i;
|
return i;
|
||||||
|
|
Loading…
Add table
Reference in a new issue