[Kdenlive-devel] [PATCH kdenlive 27/27] const parameter as reference
Mikko Rapeli
mikko.rapeli at iki.fi
Sun Aug 28 10:25:07 UTC 2011
Found by cppcheck.
---
src/transition.cpp | 2 +-
src/transition.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/transition.cpp b/src/transition.cpp
index eefa77b..1c134f6 100644
--- a/src/transition.cpp
+++ b/src/transition.cpp
@@ -31,7 +31,7 @@
#include <QStyleOptionGraphicsItem>
-Transition::Transition(const ItemInfo info, int transitiontrack, double fps, QDomElement params, bool automaticTransition) :
+Transition::Transition(const ItemInfo &info, int transitiontrack, double fps, QDomElement params, bool automaticTransition) :
AbstractClipItem(info, QRectF(), fps),
m_forceTransitionTrack(false),
m_automaticTransition(automaticTransition),
diff --git a/src/transition.h b/src/transition.h
index a904d1d..7ffdc6c 100644
--- a/src/transition.h
+++ b/src/transition.h
@@ -41,7 +41,7 @@ class Transition : public AbstractClipItem
Q_OBJECT
public:
- Transition(const ItemInfo info, int transitiontrack, double fps, QDomElement params = QDomElement(), bool automaticTransition = false);
+ Transition(const ItemInfo &info, int transitiontrack, double fps, QDomElement params = QDomElement(), bool automaticTransition = false);
virtual ~Transition();
virtual void paint(QPainter *painter,
const QStyleOptionGraphicsItem *option,
--
1.7.5.4
More information about the Kdenlive
mailing list