Commit 617ffe73 authored by Ulf Hermann's avatar Ulf Hermann

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: default avatarDaniel Teske <daniel.teske@digia.com>
parent d57bb243
......@@ -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()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment