From: Montel Laurent Date: Sat, 7 Dec 2013 12:18:20 +0000 (+0100) Subject: Minor optimization X-Git-Url: https://git.sesse.net/?p=kdenlive;a=commitdiff_plain;h=5beaaab806a7678bc2046ce5e102e1a0193d2407 Minor optimization --- diff --git a/src/effectslist.cpp b/src/effectslist.cpp index 0f4dcc32..1a09ebe3 100644 --- a/src/effectslist.cpp +++ b/src/effectslist.cpp @@ -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"); diff --git a/src/effectslist.h b/src/effectslist.h index 2ef55f0f..df9b0045 100644 --- a/src/effectslist.h +++ b/src/effectslist.h @@ -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; diff --git a/src/effectstack/effectstackview2.cpp b/src/effectstack/effectstackview2.cpp index 933ede48..c5f8ec8d 100644 --- a/src/effectstack/effectstackview2.cpp +++ b/src/effectstack/effectstackview2.cpp @@ -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; diff --git a/src/effectstack/effectstackview2.h b/src/effectstack/effectstackview2.h index 61e22b69..4e6c8ae5 100644 --- a/src/effectstack/effectstackview2.h +++ b/src/effectstack/effectstackview2.h @@ -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();