]> git.sesse.net Git - kdenlive/commitdiff
[PATCH by Ray Lehtiniemi] Remove unneeded temporary variables
authorJean-Baptiste Mardelle <jb@kdenlive.org>
Sat, 7 Mar 2009 18:08:04 +0000 (18:08 +0000)
committerJean-Baptiste Mardelle <jb@kdenlive.org>
Sat, 7 Mar 2009 18:08:04 +0000 (18:08 +0000)
svn path=/trunk/kdenlive/; revision=3114

src/customtrackview.cpp
src/monitor.cpp
src/projectlistview.cpp
src/renderwidget.cpp

index eb78be5ace5b53bc1c8ed3955e1a3572d937867c..07d4a27ce8def84234c479604aa9c8c566bed7cd 100644 (file)
@@ -3073,7 +3073,7 @@ void CustomTrackView::slotDeleteAllGuides() {
     QUndoCommand *deleteAll = new QUndoCommand();
     deleteAll->setText("Delete all guides");
     for (int i = 0; i < m_guides.count(); i++) {
-        EditGuideCommand *command = new EditGuideCommand(this, m_guides.at(i)->position(), m_guides.at(i)->label(), GenTime(), QString(), true, deleteAll);
+        new EditGuideCommand(this, m_guides.at(i)->position(), m_guides.at(i)->label(), GenTime(), QString(), true, deleteAll);
     }
     m_commandStack->push(deleteAll);
 }
index 4faf482ada31ed0c22a644ad96d5f2b94d149041..ce83725acbed527d742e85fdf9d75f5b63915570 100644 (file)
@@ -57,8 +57,8 @@ Monitor::Monitor(QString name, MonitorManager *manager, QWidget *parent)
     m_playIcon = KIcon("media-playback-start");
     m_pauseIcon = KIcon("media-playback-pause");
 
-    QAction *zoneStart = toolbar->addAction(KIcon("kdenlive-zone-start"), i18n("Set zone start"), this, SLOT(slotSetZoneStart()));
-    QAction *zoneEnd = toolbar->addAction(KIcon("kdenlive-zone-end"), i18n("Set zone end"), this, SLOT(slotSetZoneEnd()));
+    toolbar->addAction(KIcon("kdenlive-zone-start"), i18n("Set zone start"), this, SLOT(slotSetZoneStart()));
+    toolbar->addAction(KIcon("kdenlive-zone-end"), i18n("Set zone end"), this, SLOT(slotSetZoneEnd()));
 
     toolbar->addAction(KIcon("media-seek-backward"), i18n("Rewind"), this, SLOT(slotRewind()));
     toolbar->addAction(KIcon("media-skip-backward"), i18n("Rewind 1 frame"), this, SLOT(slotRewindOneFrame()));
index 5faa3591361123baa9f5e5eeccbd866f90eac84f..e2cb395749f7ad5ecd7b310a7e2383858d27ade9 100644 (file)
@@ -239,7 +239,7 @@ void ProjectListView::mouseMoveEvent(QMouseEvent *event) {
             drag->setMimeData(mimeData);
             drag->setPixmap(clickItem->icon(0).pixmap(iconSize()));
             drag->setHotSpot(QPoint(0, 50));
-            Qt::DropAction dropAction = drag->exec(Qt::MoveAction);
+            drag->exec(Qt::MoveAction);
         }
         //event->accept();
     }
index 92e4c61417023b1f975a097fccd29d6f10996524..ae29f4493bc26bb873b1f867db822fb717dc3a7c 100644 (file)
@@ -1103,7 +1103,7 @@ void RenderWidget::setRenderStatus(const QString &dest, int status, const QStrin
             emit openDvdWizard(item->text(1), item->data(0, Qt::UserRole + 1).toString());
         } else if (itemGroup == "websites") {
             QString url = item->data(0, Qt::UserRole + 1).toString();
-            if (!url.isEmpty()) KRun *openBrowser = new KRun(url, this);
+            if (!url.isEmpty()) new KRun(url, this);
         }
     } else if (status == -2) {
         // Rendering crashed