]> git.sesse.net Git - kdenlive/commitdiff
Minor clean
authorMontel Laurent <montel@kde.org>
Thu, 30 May 2013 18:05:34 +0000 (20:05 +0200)
committerMontel Laurent <montel@kde.org>
Thu, 30 May 2013 18:05:34 +0000 (20:05 +0200)
src/projecttree/cutclipjob.h
src/projecttree/meltjob.h
src/utils/freesound.cpp

index 8a9011694a91be75f5c09413a87833ba0ffaaf83..7a51b1e690267ea109c602b35df096e76d5c23cc 100644 (file)
@@ -22,7 +22,6 @@
 #define CUTCLIPJOB
 
 #include <QObject>
-#include <QProcess>
 
 #include "abstractclipjob.h"
 
index 57b2e813cff96a86014057ee2171ffd2024f70e0..9349f3cf6f58069cb13714ecd811211ba50cb37e 100644 (file)
 #define MELTJOB
 
 #include <QObject>
-#include <QProcess>
 
 #include "abstractclipjob.h"
 
 class KUrl;
 
 namespace Mlt{
-        class Profile;
-        class Producer;
-        class Consumer;
-        class Filter;
-        class Event;
-};
+class Profile;
+class Producer;
+class Consumer;
+class Filter;
+class Event;
+}
 
 class MeltJob : public AbstractClipJob
 {
index bd7393174b5e886289cbabcd8353dd4ba7635a9b..962984f52a218de1cace9a9dbfb9d8ec160b98bf 100644 (file)
@@ -200,9 +200,11 @@ void FreeSound::slotParseResults(KJob* job)
 
 bool FreeSound::startItemPreview(QListWidgetItem *item)
 {    
-    if (!item) return false;
-    QString url = item->data(previewRole).toString();
-    if (url.isEmpty()) return false;
+    if (!item)
+        return false;
+    const QString url = item->data(previewRole).toString();
+    if (url.isEmpty())
+        return false;
     if (m_previewProcess && m_previewProcess->state() != QProcess::NotRunning) {
         m_previewProcess->close();
     }
@@ -220,14 +222,16 @@ void FreeSound::stopItemPreview(QListWidgetItem */*item*/)
 
 QString FreeSound::getExtension(QListWidgetItem *item)
 {
-    if (!item) return QString();
+    if (!item)
+        return QString();
     return QString("*.") + item->text().section('.', -1);
 }
 
 
 QString FreeSound::getDefaultDownloadName(QListWidgetItem *item)
 {
-    if (!item) return QString();
+    if (!item)
+        return QString();
     return item->text();
 }