aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmlprofiler/qmlprofilerstatisticsmodel.cpp
diff options
context:
space:
mode:
authorUlf Hermann <[email protected]>2016-06-06 19:51:55 +0200
committerUlf Hermann <[email protected]>2016-06-10 12:43:05 +0000
commite10bc709bcde23a730ba390ceae33e84cc885266 (patch)
treeca6006c9c1d833d38aa1fab61354527205c82ac8 /src/plugins/qmlprofiler/qmlprofilerstatisticsmodel.cpp
parent5718f12af5ad983924a19a6033026b16df89fd2b (diff)
QmlProfiler: Provide a sane ctor for QmlEventType and use it
... in turn, make its members private, so that we don't accidentally change them. Change-Id: Ibc65b406ee341d33f69647ed1b19e1e34f5cd535 Reviewed-by: Christian Kandeler <[email protected]>
Diffstat (limited to 'src/plugins/qmlprofiler/qmlprofilerstatisticsmodel.cpp')
-rw-r--r--src/plugins/qmlprofiler/qmlprofilerstatisticsmodel.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/qmlprofiler/qmlprofilerstatisticsmodel.cpp b/src/plugins/qmlprofiler/qmlprofilerstatisticsmodel.cpp
index a1262e4b095..c2e1b92e5f7 100644
--- a/src/plugins/qmlprofiler/qmlprofilerstatisticsmodel.cpp
+++ b/src/plugins/qmlprofiler/qmlprofilerstatisticsmodel.cpp
@@ -207,7 +207,7 @@ void QmlProfilerStatisticsModel::notesChanged(int typeIndex)
void QmlProfilerStatisticsModel::loadEvent(const QmlEvent &event, const QmlEventType &type)
{
- if (!d->acceptedTypes.contains(type.rangeType))
+ if (!d->acceptedTypes.contains(type.rangeType()))
return;
switch (event.rangeStage()) {
@@ -215,7 +215,7 @@ void QmlProfilerStatisticsModel::loadEvent(const QmlEvent &event, const QmlEvent
// binding loop detection: check whether event is already in stack
for (int ii = 1; ii < d->callStack.size(); ++ii) {
if (d->callStack.at(ii).typeIndex() == event.typeIndex()
- && type.rangeType != Javascript) {
+ && type.rangeType() != Javascript) {
d->eventsInBindingLoop.insert(event.typeIndex());
break;
}