forked from qt-creator/qt-creator
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:
@@ -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()
|
||||||
|
|||||||
@@ -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;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user