[Kdenlive-devel] [PATCH kdenlive 14/27] const parameters as reference
Mikko Rapeli
mikko.rapeli at iki.fi
Sun Aug 28 10:24:54 UTC 2011
Found by cppcheck.
---
src/effectstackview.cpp | 2 +-
src/effectstackview.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/effectstackview.cpp b/src/effectstackview.cpp
index 92bcfce..95ff95c 100644
--- a/src/effectstackview.cpp
+++ b/src/effectstackview.cpp
@@ -159,7 +159,7 @@ void EffectStackView::slotSaveEffect()
emit reloadEffects();
}
-void EffectStackView::slotUpdateEffectParams(const QDomElement old, const QDomElement e)
+void EffectStackView::slotUpdateEffectParams(const QDomElement &old, const QDomElement &e)
{
if (m_trackMode)
emit updateEffect(NULL, m_trackindex, old, e, m_ui.effectlist->currentRow());
diff --git a/src/effectstackview.h b/src/effectstackview.h
index e87b828..89055a2 100644
--- a/src/effectstackview.h
+++ b/src/effectstackview.h
@@ -94,7 +94,7 @@ public slots:
* @param e New effect information
*
* Connected to a parameter change in the editor */
- void slotUpdateEffectParams(const QDomElement old, const QDomElement e);
+ void slotUpdateEffectParams(const QDomElement &old, const QDomElement &e);
/** @brief Removes the selected effect. */
void slotItemDel();
--
1.7.5.4
More information about the Kdenlive
mailing list