X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Feffectslist.h;h=df9b0045cb98122b598df63054913c4079465680;hb=56aee6aedeeed3efd10ada8fe3c229eddc01ef05;hp=9654b5bb6174fb19fe077afe770dc2c09ca3a482;hpb=3d9ff40b713934e307b6ac7808bd8d56d0bd66f7;p=kdenlive diff --git a/src/effectslist.h b/src/effectslist.h index 9654b5bb..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; @@ -71,7 +71,7 @@ public: void removeAt(int ix); QDomElement itemFromIndex(int ix) const; QDomElement insert(QDomElement effect); - void updateEffect(QDomElement effect); + void updateEffect(const QDomElement &effect); static bool hasKeyFrames(const QDomElement &effect); static bool hasSimpleKeyFrames(const QDomElement &effect); static bool hasGeometryKeyFrames(const QDomElement &effect); @@ -89,7 +89,7 @@ public: static void removeMetaProperties(QDomElement producer); void clearList(); /** @brief Get am effect with effect index equal to ix. */ - QDomElement effectFromIndex(QDomNodeList effects, int ix); + QDomElement effectFromIndex(const QDomNodeList &effects, int ix); /** @brief Update all effects indexes to make sure they are 1, 2, 3, ... */ void updateIndexes(QDomNodeList effects, int startIndex); /** @brief Enable / disable a list of effects */