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

index 3d8ce6a841cb92ad2a8e494a22b228ae1ede14ed..b663fc6b0c4261bfe3a82f8b7fc6fadcc0d1404a 100644 (file)
@@ -104,7 +104,8 @@ public:
     ItemInfo() : track(0) {};
 };
 
-struct TransitionInfo {
+class TransitionInfo {
+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 */
@@ -115,6 +116,10 @@ struct TransitionInfo {
     int a_track;
     /** Does the user request for a special a_track */
     bool forceTrack;
+    TransitionInfo() :
+        b_track(0),
+        a_track(0),
+        forceTrack(0) {};
 };
 
 class MltVideoProfile {