From 9d55f9b8a1af973e09bf0ff7ab249df4d42e7bb6 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Mardelle Date: Mon, 23 Jul 2012 11:02:41 +0200 Subject: [PATCH] definitions.h: initialize ItemInfo [Coverity 12/14] by Mikko Rapeli --- src/definitions.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/definitions.h b/src/definitions.h index 1e039456..a48306e6 100644 --- a/src/definitions.h +++ b/src/definitions.h @@ -83,7 +83,8 @@ struct TrackInfo { typedef QMap stringMap; typedef QMap > audioByteArray; -struct ItemInfo { +class ItemInfo { +public: /** startPos is the position where the clip starts on the track */ GenTime startPos; /** endPos is the duration where the clip ends on the track */ @@ -93,6 +94,7 @@ struct ItemInfo { /** cropDuration is the duration of the clip */ GenTime cropDuration; int track; + ItemInfo() : track(0) {}; }; struct TransitionInfo { -- 2.39.5