Commit af4fd26b authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

const'ify when necessary

parent 36dc441f
......@@ -975,7 +975,7 @@ bool DocumentValidator::upgrade(double version, const double currentVersion)
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
......
......@@ -42,7 +42,7 @@ private:
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();
......
......@@ -55,7 +55,7 @@ QDomElement EffectsList::getEffectByName(const QString & name) const
}
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++) {
......
......@@ -100,7 +100,7 @@ private:
bool m_useIndex;
/** @brief Init effect default parameter values. */
void initEffect(QDomElement effect) const;
void initEffect(const QDomElement &effect) const;
};
......
......@@ -260,7 +260,7 @@ void EffectsListWidget::loadEffects(const EffectsList *effectlist, KIcon icon, Q
}
}
QTreeWidgetItem *EffectsListWidget::findFolder(const QString name)
QTreeWidgetItem *EffectsListWidget::findFolder(const QString &name)
{
QTreeWidgetItem *item = NULL;
QList<QTreeWidgetItem *> result = findItems(name, Qt::MatchExactly);
......
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment