QmlProfiler: Fix compile error in animations model

Some compilers don't like explicit initializers for arrays.

Change-Id: I49d056e0000334857a635d8da10491c0d1e5f36c
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
This commit is contained in:
Ulf Hermann
2016-05-24 09:28:58 +02:00
parent 32df78c791
commit 105f0e963f
2 changed files with 2 additions and 1 deletions

View File

@@ -44,6 +44,7 @@ QmlProfilerAnimationsModel::QmlProfilerAnimationsModel(QmlProfilerModelManager *
QObject *parent) : QObject *parent) :
QmlProfilerTimelineModel(manager, Event, MaximumRangeType, ProfileAnimations, parent) QmlProfilerTimelineModel(manager, Event, MaximumRangeType, ProfileAnimations, parent)
{ {
m_minNextStartTimes[0] = m_minNextStartTimes[1] = 0;
} }
void QmlProfilerAnimationsModel::clear() void QmlProfilerAnimationsModel::clear()

View File

@@ -74,7 +74,7 @@ private:
QVector<QmlProfilerAnimationsModel::QmlPaintEventData> m_data; QVector<QmlProfilerAnimationsModel::QmlPaintEventData> m_data;
int m_maxGuiThreadAnimations = 0; int m_maxGuiThreadAnimations = 0;
int m_maxRenderThreadAnimations = 0; int m_maxRenderThreadAnimations = 0;
qint64 m_minNextStartTimes[2] = {0, 0}; qint64 m_minNextStartTimes[2];
int rowFromThreadId(int threadId) const; int rowFromThreadId(int threadId) const;
}; };