add braces around multi-line loop in QMetaObject::indexOfProperty()

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
Ivailo Monev 2020-01-04 18:08:28 +00:00
parent 46d70d6fd0
commit 6029990b42

View file

@ -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;