return true;
}
-QStringList DocumentValidator::getInfoFromEffectName(const QString oldName)
+QStringList DocumentValidator::getInfoFromEffectName(const QString &oldName)
{
QStringList info;
// Returns a list to convert old Kdenlive ladspa effects
KUrl m_url;
bool m_modified;
bool upgrade(double version, const double currentVersion);
- QStringList getInfoFromEffectName(const QString oldName);
+ QStringList getInfoFromEffectName(const QString &oldName);
QString colorToString(const QColor& c);
/** @brief Updates effects that were created using a different version of the underlaying filter than the one installed. */
void updateEffects();
}
-void EffectsList::initEffect(QDomElement effect) const
+void EffectsList::initEffect(const QDomElement &effect) const
{
QDomNodeList params = effect.elementsByTagName("parameter");
for (int i = 0; i < params.count(); i++) {
bool m_useIndex;
/** @brief Init effect default parameter values. */
- void initEffect(QDomElement effect) const;
+ void initEffect(const QDomElement &effect) const;
};
}
}
-QTreeWidgetItem *EffectsListWidget::findFolder(const QString name)
+QTreeWidgetItem *EffectsListWidget::findFolder(const QString &name)
{
QTreeWidgetItem *item = NULL;
QList<QTreeWidgetItem *> result = findItems(name, Qt::MatchExactly);
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