]> git.sesse.net Git - kdenlive/blobdiff - src/keyframeedit.h
const'ref. Fix coding style. Minor optimization
[kdenlive] / src / keyframeedit.h
index 2da6b6d8e9da57e2d1c4567b0f7ab6262432b3ec..183d9b6a83a1249b0d8321ab0f4081a1a43c7273 100644 (file)
@@ -35,7 +35,8 @@ class KeyItemDelegate: public QItemDelegate
 {
     Q_OBJECT
 public:
-    KeyItemDelegate(int min, int max, QAbstractItemView* parent = 0): QItemDelegate(parent), m_min(min), m_max(max) {
+    KeyItemDelegate(int min, int max, QAbstractItemView* parent = 0)
+        : QItemDelegate(parent), m_min(min), m_max(max) {
     }
 
     QWidget *createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const {
@@ -80,7 +81,7 @@ class KeyframeEdit : public QWidget, public Ui::KeyframeEditor_UI
 {
     Q_OBJECT
 public:
-    explicit KeyframeEdit(QDomElement e, int minFrame, int maxFrame, Timecode tc, int activeKeyframe, QWidget* parent = 0);
+    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);
     const QString getValue(const QString &name);