]> git.sesse.net Git - kdenlive/blobdiff - src/effectslistwidget.h
use const'ref
[kdenlive] / src / effectslistwidget.h
index 3828884671f23d653c0493bcf9adaac9f09ce183..c44d0f65f36db0f66b8a253d9cae2082de6f2114 100644 (file)
@@ -50,7 +50,7 @@ protected:
 private:
     QMenu *m_menu;
     /** @brief Returns the folder item whose name == @param name. */
-    QTreeWidgetItem *findFolder(const QString name);
+    QTreeWidgetItem *findFolder(const QString &name);
 
     /** @brief Loads the effects from the given effectlist as item of this widget.
      * @param effectlist effectlist containing the effects that should be loaded
@@ -61,7 +61,7 @@ private:
      * @param current name of selected effect before reload; if an effect name matches this one it will become selected
      * @param found will be set to true if an effect name matches current
      */
-    void loadEffects(const EffectsList *effectlist, KIcon icon, QTreeWidgetItem *defaultFolder, const QList<QTreeWidgetItem *> *folders, const QString type, const QString current, bool *found);
+    void loadEffects(const EffectsList *effectlist, KIcon icon, QTreeWidgetItem *defaultFolder, const QList<QTreeWidgetItem *> *folders, int type, const QString current, bool *found);
 
 private slots:
     void slotExpandItem(const QModelIndex & index);