From 7876f8ee9d7734225714b69da929557113c8bf22 Mon Sep 17 00:00:00 2001 From: Tobias Hunger Date: Tue, 29 Nov 2016 13:13:39 +0100 Subject: [PATCH] QmlProfiler: Initialize fields in PixmapCacheItem Change-Id: I4ab27b6a122a1a77fad23dfa1a1a8f825fff0765 Reviewed-by: Ulf Hermann --- src/plugins/qmlprofiler/pixmapcachemodel.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/plugins/qmlprofiler/pixmapcachemodel.h b/src/plugins/qmlprofiler/pixmapcachemodel.h index 9d899e65652..8e79729c364 100644 --- a/src/plugins/qmlprofiler/pixmapcachemodel.h +++ b/src/plugins/qmlprofiler/pixmapcachemodel.h @@ -87,12 +87,12 @@ public: }; struct PixmapCacheItem { - int typeId; - PixmapEventType pixmapEventType; - int urlIndex; - int sizeIndex; - int rowNumberCollapsed; - qint64 cacheSize; + int typeId = -1; + PixmapEventType pixmapEventType = MaximumPixmapEventType; + int urlIndex = -1; + int sizeIndex = -1; + int rowNumberCollapsed = -1; + qint64 cacheSize = -1; }; PixmapCacheModel(QmlProfilerModelManager *manager, QObject *parent = 0);