]> git.sesse.net Git - kdenlive/commitdiff
definitions.h: initialize ItemInfo [Coverity 12/14] by Mikko Rapeli
authorJean-Baptiste Mardelle <jb@kdenlive.org>
Mon, 23 Jul 2012 09:02:41 +0000 (11:02 +0200)
committerJean-Baptiste Mardelle <jb@kdenlive.org>
Mon, 23 Jul 2012 09:02:41 +0000 (11:02 +0200)
src/definitions.h

index 1e03945684739f011886de0150a72d8ebe641833..a48306e63d64089efd6cb607ff5f3424f3f7a505 100644 (file)
@@ -83,7 +83,8 @@ struct TrackInfo {
 typedef QMap<QString, QString> stringMap;
 typedef QMap <int, QMap <int, QByteArray> > 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 {