]> git.sesse.net Git - kdenlive/commitdiff
[PATCH by Ray Lehtiniemi] Add defaults for a few potentially uninitialized uses
authorJean-Baptiste Mardelle <jb@kdenlive.org>
Sat, 7 Mar 2009 17:55:01 +0000 (17:55 +0000)
committerJean-Baptiste Mardelle <jb@kdenlive.org>
Sat, 7 Mar 2009 17:55:01 +0000 (17:55 +0000)
svn path=/trunk/kdenlive/; revision=3109

renderer/renderjob.cpp
src/mainwindow.cpp
src/trackview.cpp

index 33f7b7b4680b57fbe952195145c3da458de31c04..cb2628bd1dc06a5f49291a69d86490ce7c314437 100644 (file)
@@ -268,7 +268,7 @@ void RenderJob::slotIsOver(int exitcode, QProcess::ExitStatus status) {
             args.append(QByteArray());   // app icon
             QStringList actionList;
             args.append(actionList);   // actions
-            qlonglong wid;
+            qlonglong wid = 0;
             args.append(wid);   // win id
 
             m.setArguments(args);
index 85f5b8857691c1904bdf74e4bc443ae2fe6ddf7b..767b8694f91db6a2be73c5115d88bb5d9317b043 100644 (file)
@@ -1448,8 +1448,8 @@ void MainWindow::slotRenderProject() {
 void MainWindow::slotDoRender(const QString &dest, const QString &render, const QStringList &overlay_args, const QStringList &avformat_args, bool zoneOnly, bool playAfter, double guideStart, double guideEnd, bool resizeProfile, const QString &scriptExport) {
     kDebug() << "// SCRIPT EXPORT: " << scriptExport;
     if (dest.isEmpty()) return;
-    int in;
-    int out;
+    int in = 0;
+    int out = 0;
     TrackView *currentTab = (TrackView *) m_timelineArea->currentWidget();
     if (currentTab && zoneOnly) {
         in = currentTab->inPoint();
index 72cf2823ec818a2f22f0b9796f78697fb7d911e5..57b48fa37bd328ed5a6a79bf310f3c0fccc6a6d3 100644 (file)
@@ -461,7 +461,7 @@ int TrackView::slotAddProjectTrack(int ix, QDomElement xml, bool locked) {
                             if (MainWindow::videoEffects.hasKeyFrames(currenteffect)) {
                                 //kDebug() << " * * * * * * * * * * ** CLIP EFF WITH KFR FND  * * * * * * * * * * *";
                                 // effect is key-framable, read all effects to retrieve keyframes
-                                double factor;
+                                double factor = 0;
                                 QString starttag;
                                 QString endtag;
                                 QDomNodeList params = currenteffect.elementsByTagName("parameter");
@@ -477,8 +477,8 @@ int TrackView::slotAddProjectTrack(int ix, QDomElement xml, bool locked) {
                                 QString keyframes;
                                 int effectin = effect.attribute("in").toInt();
                                 int effectout = effect.attribute("out").toInt();
-                                double startvalue;
-                                double endvalue;
+                                double startvalue = 0;
+                                double endvalue = 0;
                                 for (QDomNode n3 = effect.firstChild(); !n3.isNull(); n3 = n3.nextSibling()) {
                                     // parse effect parameters
                                     QDomElement effectparam = n3.toElement();