QmlProfiler: Initialize fields in PixmapCacheItem

Change-Id: I4ab27b6a122a1a77fad23dfa1a1a8f825fff0765
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
This commit is contained in:
Tobias Hunger
2016-11-29 13:13:39 +01:00
parent e6e207a49f
commit 7876f8ee9d

View File

@@ -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);