From 105f0e963fbc5828f7ad327b42dc481537ae81e3 Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Tue, 24 May 2016 09:28:58 +0200 Subject: [PATCH] QmlProfiler: Fix compile error in animations model Some compilers don't like explicit initializers for arrays. Change-Id: I49d056e0000334857a635d8da10491c0d1e5f36c Reviewed-by: Christian Kandeler --- src/plugins/qmlprofiler/qmlprofileranimationsmodel.cpp | 1 + src/plugins/qmlprofiler/qmlprofileranimationsmodel.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugins/qmlprofiler/qmlprofileranimationsmodel.cpp b/src/plugins/qmlprofiler/qmlprofileranimationsmodel.cpp index f66850c5f8c..d464d6953fa 100644 --- a/src/plugins/qmlprofiler/qmlprofileranimationsmodel.cpp +++ b/src/plugins/qmlprofiler/qmlprofileranimationsmodel.cpp @@ -44,6 +44,7 @@ QmlProfilerAnimationsModel::QmlProfilerAnimationsModel(QmlProfilerModelManager * QObject *parent) : QmlProfilerTimelineModel(manager, Event, MaximumRangeType, ProfileAnimations, parent) { + m_minNextStartTimes[0] = m_minNextStartTimes[1] = 0; } void QmlProfilerAnimationsModel::clear() diff --git a/src/plugins/qmlprofiler/qmlprofileranimationsmodel.h b/src/plugins/qmlprofiler/qmlprofileranimationsmodel.h index 49b79840722..54f5fe1e2c8 100644 --- a/src/plugins/qmlprofiler/qmlprofileranimationsmodel.h +++ b/src/plugins/qmlprofiler/qmlprofileranimationsmodel.h @@ -74,7 +74,7 @@ private: QVector m_data; int m_maxGuiThreadAnimations = 0; int m_maxRenderThreadAnimations = 0; - qint64 m_minNextStartTimes[2] = {0, 0}; + qint64 m_minNextStartTimes[2]; int rowFromThreadId(int threadId) const; };