]> git.sesse.net Git - kdenlive/commitdiff
const'ref. Fix indent
authorMontel Laurent <montel@kde.org>
Mon, 3 Jun 2013 07:33:55 +0000 (09:33 +0200)
committerMontel Laurent <montel@kde.org>
Mon, 3 Jun 2013 07:33:55 +0000 (09:33 +0200)
src/cornerswidget.cpp
src/cornerswidget.h
src/keyframeedit.cpp
src/keyframeedit.h
thumbnailer/westleypreview.cpp

index 372a6bb2ac375eff8ce96c2b1eb80cafa53324b7..20546a7900ee994918473e6834d351af69574634 100644 (file)
@@ -73,7 +73,7 @@ CornersWidget::~CornersWidget()
     }
 }
 
-void CornersWidget::addParameter(QDomElement e, int activeKeyframe)
+void CornersWidget::addParameter(const QDomElement &e, int activeKeyframe)
 {
     KeyframeEdit::addParameter(e, activeKeyframe);
 
index 4c585cbb45e73eeb41c73cbcf3399b73cf31b65c..27facd4c1935136d98ba32a077771ad48b9620ec 100644 (file)
@@ -43,7 +43,7 @@ public:
     explicit CornersWidget(Monitor *monitor, const QDomElement &e, int minFrame, int maxFrame, const Timecode &tc, int activeKeyframe, QWidget* parent = 0);
     virtual ~CornersWidget();
 
-    virtual void addParameter(QDomElement e, int activeKeyframe = -1);
+    virtual void addParameter(const QDomElement &e, int activeKeyframe = -1);
 
 public slots:
     /** @brief Updates the on-monitor item.  */
index 659199dd517b88f9349cdc8f81e08fb9ce9f532b..ac367215b7b24a7cbb69165db0642431fc45f708 100644 (file)
@@ -99,7 +99,7 @@ KeyframeEdit::~KeyframeEdit()
     }
 }
 
-void KeyframeEdit::addParameter(QDomElement e, int activeKeyframe)
+void KeyframeEdit::addParameter(const QDomElement &e, int activeKeyframe)
 {
     keyframe_list->blockSignals(true);
     m_params.append(e.cloneNode().toElement());
index 183d9b6a83a1249b0d8321ab0f4081a1a43c7273..a0ba5dc9ea139df9cf974c48d3557269fb9b9857 100644 (file)
@@ -83,7 +83,7 @@ class KeyframeEdit : public QWidget, public Ui::KeyframeEditor_UI
 public:
     explicit KeyframeEdit(const QDomElement &e, int minFrame, int maxFrame, const Timecode &tc, int activeKeyframe, QWidget* parent = 0);
     virtual ~KeyframeEdit();
-    virtual void addParameter(QDomElement e, int activeKeyframe = -1);
+    virtual void addParameter(const QDomElement &e, int activeKeyframe = -1);
     const QString getValue(const QString &name);
     /** @brief Updates the timecode display according to settings (frame number or hh:mm:ss:ff) */
     void updateTimecodeFormat();
index 7866a4ce4125865025f91b0a98dcd068e9e08b7c..b3212da8edac1e366cdc37b493349ab362dafb7a 100644 (file)
 
 //#include "config.h"
 extern "C" {
-    KDE_EXPORT ThumbCreator *new_creator() {
-        return new MltPreview;
-    }
+KDE_EXPORT ThumbCreator *new_creator() {
+    return new MltPreview;
+}
 }
 
 MltPreview::MltPreview() :
-        QObject(),
-        ThumbCreator()
+    QObject(),
+    ThumbCreator()
 {
     Mlt::Factory::init();
 }