]> git.sesse.net Git - kdenlive/commitdiff
Minor optimization
authorMontel Laurent <montel@kde.org>
Sat, 7 Dec 2013 12:18:20 +0000 (13:18 +0100)
committerMontel Laurent <montel@kde.org>
Sat, 7 Dec 2013 12:18:20 +0000 (13:18 +0100)
src/effectslist.cpp
src/effectslist.h
src/effectstack/effectstackview2.cpp
src/effectstack/effectstackview2.h

index 0f4dcc32f1d1f5e769d62a947bf514d2d5da3bea..1a09ebe32efd75dc6f9ca9e1353f2944932887e3 100644 (file)
@@ -145,7 +145,7 @@ QString EffectsList::getInfoFromIndex(const int ix) const
     return getEffectInfo(m_baseElement.childNodes().at(ix).toElement());
 }
 
-QString EffectsList::getEffectInfo(const QDomElement effect) const
+QString EffectsList::getEffectInfo(const QDomElement &effect) const
 {
     QString info;
     QDomElement namenode = effect.firstChildElement("description");
index 2ef55f0f4bdaf82263e2c3f57a5b3eb59b82fda6..df9b0045cb98122b598df63054913c4079465680 100644 (file)
@@ -62,7 +62,7 @@ public:
     QStringList effectNames();
     QString getInfo(const QString & tag, const QString & id) const;
     QString getInfoFromIndex(const int ix) const;
-    QString getEffectInfo(const QDomElement effect) const;
+    QString getEffectInfo(const QDomElement &effect) const;
     void clone(const EffectsList &original);
     QDomElement append(QDomElement e);
     bool isEmpty() const;
index 933ede4896491687957e54c40817ad6e4045e24b..c5f8ec8d5c3fd1358a5b0449b7ae7fdcfb752748 100644 (file)
@@ -142,7 +142,7 @@ void EffectStackView2::slotClipItemSelected(ClipItem* c)
     setupListView();
 }
 
-void EffectStackView2::slotTrackItemSelected(int ix, const TrackInfo info)
+void EffectStackView2::slotTrackItemSelected(int ix, const TrackInfo &info)
 {
     m_clipref = NULL;
     m_effectMetaInfo.trackMode = true;
index 61e22b69e53e4bb0e2d4a13459118e5ebc680c33..4e6c8ae5e274852d6fec7535fdce07bd94221f68 100644 (file)
@@ -135,7 +135,7 @@ public slots:
     * @param c Clip whose effect list should be managed */
     void slotClipItemUpdate();
 
-    void slotTrackItemSelected(int ix, const TrackInfo info);
+    void slotTrackItemSelected(int ix, const TrackInfo &info);
    
     /** @brief Check if the mouse wheel events should be used for scrolling the widget view. */
     void slotCheckWheelEventFilter();