]> git.sesse.net Git - kdenlive/commitdiff
Const'ref. Fix include/forward class
authorMontel Laurent <montel@kde.org>
Sat, 1 Jun 2013 14:16:42 +0000 (16:16 +0200)
committerMontel Laurent <montel@kde.org>
Sat, 1 Jun 2013 14:16:42 +0000 (16:16 +0200)
src/renderer.cpp
src/renderer.h
src/renderwidget.cpp
src/renderwidget.h

index 041f82abd598ec37dc24014e57c620929aef4794..444fcc7078746d15fdede1dff9f6c921efe7ff6d 100644 (file)
@@ -4090,7 +4090,7 @@ void Render::mltDeleteTransition(QString tag, int /*a_track*/, int b_track, GenT
     //if (m_isBlocked == 0) m_mltConsumer->set("refresh", 1);
 }
 
-QMap<QString, QString> Render::mltGetTransitionParamsFromXml(QDomElement xml)
+QMap<QString, QString> Render::mltGetTransitionParamsFromXml(const QDomElement &xml)
 {
     QDomNodeList attribs = xml.elementsByTagName("parameter");
     QMap<QString, QString> map;
@@ -4566,7 +4566,7 @@ void Render::updatePreviewSettings()
 }
 
 
-QString Render::updateSceneListFps(double current_fps, double new_fps, QString scene)
+QString Render::updateSceneListFps(double current_fps, double new_fps, const QString &scene)
 {
     // Update all frame positions to the new fps value
     //WARNING: there are probably some effects or other that hold a frame value
@@ -4733,7 +4733,7 @@ bool Render::getBlackMagicOutputDeviceList(KComboBox *devicelist, bool force)
     return true;
 }
 
-void Render::slotMultiStreamProducerFound(const QString path, QList<int> audio_list, QList<int> video_list, stringMap data)
+void Render::slotMultiStreamProducerFound(const QString &path, QList<int> audio_list, QList<int> video_list, stringMap data)
 { 
     if (KdenliveSettings::automultistreams()) {
         for (int i = 1; i < video_list.count(); ++i) {
index 6656a17b3e694d9c79ba57052f712d1e18be3ac3..805d2086c7958ee39ae21418ec3b06eb26e3ae19 100644 (file)
@@ -303,7 +303,7 @@ class Render: public AbstractRender
     void setDropFrames(bool show);
     /** @brief Sets an MLT consumer property. */
     void setConsumerProperty(const QString &name, const QString &value);
-    QString updateSceneListFps(double current_fps, double new_fps, QString scene);
+    QString updateSceneListFps(double current_fps, double new_fps, const QString &scene);
 
     void showAudio(Mlt::Frame&);
     
@@ -403,7 +403,7 @@ private:
     void closeMlt();
     void mltCheckLength(Mlt::Tractor *tractor);
     void mltPasteEffects(Mlt::Producer *source, Mlt::Producer *dest);
-    QMap<QString, QString> mltGetTransitionParamsFromXml(QDomElement xml);
+    QMap<QString, QString> mltGetTransitionParamsFromXml(const QDomElement &xml);
     QMap<QString, Mlt::Producer *> m_slowmotionProducers;
     /** @brief The ids of the clips that are currently being loaded for info query */
     QStringList m_processingClipId;
@@ -432,7 +432,7 @@ private slots:
     /** @brief Process the clip info requests (in a separate thread). */
     void processFileProperties();
     /** @brief A clip with multiple video streams was found, ask what to do. */
-    void slotMultiStreamProducerFound(const QString path, QList<int> audio_list, QList<int> video_list, stringMap data);
+    void slotMultiStreamProducerFound(const QString &path, QList<int> audio_list, QList<int> video_list, stringMap data);
     void showFrame(Mlt::Frame *);
     void slotCheckSeeking();
 
index 766dfb593a83331616edf39eb954d27ce4f32a5f..3d287db6d254f5b7f649a9d0786586b6a560e806 100644 (file)
@@ -46,6 +46,7 @@
 #include <QDBusInterface>
 #include <QThread>
 #include <QScriptEngine>
+#include <QKeyEvent>
 
 #include "locale.h"
 
index 2c0c9ceef7b371ae14783d1daf0bf83fec4e745c..388a3835ab6f8f8dc985e8f0cd9a3beb410da75e 100644 (file)
 #include <QPushButton>
 #include <QPainter>
 #include <QStyledItemDelegate>
-#include <QKeyEvent>
 
 #include "definitions.h"
 #include "ui_renderwidget_ui.h"
 
 class QDomElement;
+class QKeyEvent;
 
 
 // RenderViewDelegate is used to draw the progress bars.