From: Jean-Baptiste Mardelle Date: Sat, 7 Mar 2009 17:55:01 +0000 (+0000) Subject: [PATCH by Ray Lehtiniemi] Add defaults for a few potentially uninitialized uses X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=46742ede3d3068e87ac7c7f11a2e6c2f70d3cb24;p=kdenlive [PATCH by Ray Lehtiniemi] Add defaults for a few potentially uninitialized uses svn path=/trunk/kdenlive/; revision=3109 --- diff --git a/renderer/renderjob.cpp b/renderer/renderjob.cpp index 33f7b7b4..cb2628bd 100644 --- a/renderer/renderjob.cpp +++ b/renderer/renderjob.cpp @@ -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); diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 85f5b885..767b8694 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -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(); diff --git a/src/trackview.cpp b/src/trackview.cpp index 72cf2823..57b48fa3 100644 --- a/src/trackview.cpp +++ b/src/trackview.cpp @@ -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();