aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmlprofiler/qmlprofilermodelmanager.cpp
diff options
context:
space:
mode:
authorUlf Hermann <[email protected]>2014-06-03 15:35:54 +0200
committerUlf Hermann <[email protected]>2014-06-03 17:42:29 +0200
commit617ffe7303b23a9a4ce184980f584d6f9bbf15f5 (patch)
tree2135dbb19a8a138b4529a4085e48e8ce2b12d151 /src/plugins/qmlprofiler/qmlprofilermodelmanager.cpp
parentd57bb243542456be10f6e6c00a65166161f0f798 (diff)
QmlProfiler: Avoid nondeterminism when creating trace time object
If start and end times are initialized by clear() the change signals may or may not be sent. Change-Id: Ib50a2bbecf58791c5f93348e7450f4c0324f9d90 Reviewed-by: Daniel Teske <[email protected]>
Diffstat (limited to 'src/plugins/qmlprofiler/qmlprofilermodelmanager.cpp')
-rw-r--r--src/plugins/qmlprofiler/qmlprofilermodelmanager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/qmlprofiler/qmlprofilermodelmanager.cpp b/src/plugins/qmlprofiler/qmlprofilermodelmanager.cpp
index 4ec8c71ed0a..e22eb097a8c 100644
--- a/src/plugins/qmlprofiler/qmlprofilermodelmanager.cpp
+++ b/src/plugins/qmlprofiler/qmlprofilermodelmanager.cpp
@@ -86,9 +86,9 @@ void QmlProfilerDataState::setState(QmlProfilerDataState::State state)
/////////////////////////////////////////////////////////////////////
-QmlProfilerTraceTime::QmlProfilerTraceTime(QObject *parent) : QObject(parent)
+QmlProfilerTraceTime::QmlProfilerTraceTime(QObject *parent) :
+ QObject(parent), m_startTime(-1), m_endTime(-1)
{
- clear();
}
QmlProfilerTraceTime::~QmlProfilerTraceTime()