summaryrefslogtreecommitdiff
path: root/src/plugins/qmlprofiler/timelinemodelaggregator.cpp
diff options
context:
space:
mode:
authorOrgad Shaneh <orgad.shaneh@audiocodes.com>2013-11-11 22:20:47 +0200
committerhjk <hjk121@nokiamail.com>2013-11-14 08:13:52 +0100
commit4442a92729f17db4f47a4458894298487952109c (patch)
treeb1e87e18abdb34b59ca5082c3104cab211157328 /src/plugins/qmlprofiler/timelinemodelaggregator.cpp
parentbfad6f107ab4fdaee6dcf4dd32caefc025bfe3f1 (diff)
downloadqt-creator-4442a92729f17db4f47a4458894298487952109c.tar.gz
Braces cleanup
Change-Id: I8413252c90a1487d291f15d92837c30ab697b245 Reviewed-by: hjk <hjk121@nokiamail.com>
Diffstat (limited to 'src/plugins/qmlprofiler/timelinemodelaggregator.cpp')
-rw-r--r--src/plugins/qmlprofiler/timelinemodelaggregator.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/plugins/qmlprofiler/timelinemodelaggregator.cpp b/src/plugins/qmlprofiler/timelinemodelaggregator.cpp
index ccdf84dd5f..32716ec563 100644
--- a/src/plugins/qmlprofiler/timelinemodelaggregator.cpp
+++ b/src/plugins/qmlprofiler/timelinemodelaggregator.cpp
@@ -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;
}