]> git.sesse.net Git - kdenlive/blobdiff - src/projectlist.h
Use const'ref, change if(foo) delete foo => delete foo not necessary to check it...
[kdenlive] / src / projectlist.h
index 6f763906afc9b7f409d54629eac8ce2791427967..04a55f6c2c7767dbe460fc3f6d4d46b9c889ed6d 100644 (file)
@@ -60,6 +60,7 @@
 #else
 // Dummy KMessageWidget to allow compilation of MyMessageWidget class since Qt's moc doesn work inside #ifdef
 #include <QLabel>
+
 class KMessageWidget: public QLabel
 {
 public:
@@ -86,7 +87,7 @@ signals:
 namespace Mlt
 {
 class Producer;
-};
+}
 
 class ProjectItem;
 class ProjectListView;
@@ -425,8 +426,8 @@ private:
     /** @brief Start an MLT process job. */
     void processClipJob(QStringList ids, const QString&destination, bool autoAdd, QStringList jobParams, const QString &description, stringMap extraParams = stringMap());
     /** @brief Create rounded shape pixmap for project tree thumb. */
-    QPixmap roundedPixmap(QImage img);
-    QPixmap roundedPixmap(QPixmap source);
+    QPixmap roundedPixmap(const QImage &img);
+    QPixmap roundedPixmap(const QPixmap &source);
     /** @brief Extract a clip's metadata with the exiftool program. */
     void extractMetadata(DocClipBase *clip);
     /** @brief Add a special FFmpeg tag if clip matches some properties (for example set full_luma for Sony NEX camcorders. */