aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/qmlprofiler/qmlprofilerpainteventsmodelproxy.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/qmlprofiler/qmlprofilerpainteventsmodelproxy.cpp')
-rw-r--r--plugins/qmlprofiler/qmlprofilerpainteventsmodelproxy.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/qmlprofiler/qmlprofilerpainteventsmodelproxy.cpp b/plugins/qmlprofiler/qmlprofilerpainteventsmodelproxy.cpp
index 466c3461ea..12420eebbd 100644
--- a/plugins/qmlprofiler/qmlprofilerpainteventsmodelproxy.cpp
+++ b/plugins/qmlprofiler/qmlprofilerpainteventsmodelproxy.cpp
@@ -229,12 +229,12 @@ const QString PaintEventsModelProxy::categoryLabel(int categoryIndex) const
int PaintEventsModelProxy::findFirstIndex(qint64 startTime) const
{
if (d->eventList.isEmpty())
- return 0; // -1
+ return -1;
if (d->eventList.count() == 1 || d->eventList.first().startTime+d->eventList.first().duration >= startTime)
return 0;
else
if (d->eventList.last().startTime+d->eventList.last().duration <= startTime)
- return 0; // -1
+ return -1;
int fromIndex = 0;
int toIndex = d->eventList.count()-1;
@@ -256,9 +256,9 @@ int PaintEventsModelProxy::findFirstIndexNoParents(qint64 startTime) const
int PaintEventsModelProxy::findLastIndex(qint64 endTime) const
{
if (d->eventList.isEmpty())
- return 0; // -1
+ return -1;
if (d->eventList.first().startTime >= endTime)
- return 0; // -1
+ return -1;
if (d->eventList.count() == 1)
return 0;
if (d->eventList.last().startTime <= endTime)