forked from qt-creator/qt-creator
Braces cleanup
Change-Id: I8413252c90a1487d291f15d92837c30ab697b245 Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
@@ -207,11 +207,10 @@ int TimelineModelAggregator::modelIndexForCategory(int absoluteCategoryIndex) co
|
||||
{
|
||||
int categoryIndex = absoluteCategoryIndex;
|
||||
for (int modelIndex = 0; modelIndex < d->modelList.count(); modelIndex++)
|
||||
if (categoryIndex < d->modelList[modelIndex]->categoryCount()) {
|
||||
if (categoryIndex < d->modelList[modelIndex]->categoryCount())
|
||||
return modelIndex;
|
||||
} else {
|
||||
else
|
||||
categoryIndex -= d->modelList[modelIndex]->categoryCount();
|
||||
}
|
||||
|
||||
return modelCount()-1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user