[Kdenlive-devel] [PATCH kdenlive 12/27] const parameters as reference
Mikko Rapeli
mikko.rapeli at iki.fi
Sun Aug 28 10:24:52 UTC 2011
Found by cppcheck.
---
src/effectslist.cpp | 2 +-
src/effectslist.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/effectslist.cpp b/src/effectslist.cpp
index f3ac887..6fc98a9 100644
--- a/src/effectslist.cpp
+++ b/src/effectslist.cpp
@@ -177,7 +177,7 @@ bool EffectsList::hasGeometryKeyFrames(QDomElement effect)
return false;
}
-void EffectsList::clone(const EffectsList original)
+void EffectsList::clone(const EffectsList &original)
{
setContent(original.toString());
m_baseElement = documentElement();
diff --git a/src/effectslist.h b/src/effectslist.h
index a12a36f..456dda5 100644
--- a/src/effectslist.h
+++ b/src/effectslist.h
@@ -58,7 +58,7 @@ public:
QStringList effectNames();
QString getInfo(const QString & tag, const QString & id) const;
QString getInfoFromIndex(const int ix) const;
- void clone(const EffectsList original);
+ void clone(const EffectsList &original);
void append(QDomElement e);
bool isEmpty() const;
int count() const;
--
1.7.5.4
More information about the Kdenlive
mailing list