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 { struct PixmapCacheItem {
int typeId; int typeId = -1;
PixmapEventType pixmapEventType; PixmapEventType pixmapEventType = MaximumPixmapEventType;
int urlIndex; int urlIndex = -1;
int sizeIndex; int sizeIndex = -1;
int rowNumberCollapsed; int rowNumberCollapsed = -1;
qint64 cacheSize; qint64 cacheSize = -1;
}; };
PixmapCacheModel(QmlProfilerModelManager *manager, QObject *parent = 0); PixmapCacheModel(QmlProfilerModelManager *manager, QObject *parent = 0);