[Kdenlive-devel] [PATCH kdenlive 15/27] const parameter as reference
Mikko Rapeli
mikko.rapeli at iki.fi
Sun Aug 28 10:24:55 UTC 2011
Found by cppcheck.
---
src/geometryval.cpp | 2 +-
src/geometryval.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/geometryval.cpp b/src/geometryval.cpp
index 290435b..9dfe5f3 100644
--- a/src/geometryval.cpp
+++ b/src/geometryval.cpp
@@ -29,7 +29,7 @@
#include <QTimer>
-Geometryval::Geometryval(const MltVideoProfile profile, Timecode t, QPoint frame_size, int startPoint, QWidget* parent) :
+Geometryval::Geometryval(const MltVideoProfile &profile, Timecode t, QPoint frame_size, int startPoint, QWidget* parent) :
QWidget(parent),
m_profile(profile),
m_paramRect(NULL),
diff --git a/src/geometryval.h b/src/geometryval.h
index 3bacb18..bccad66 100644
--- a/src/geometryval.h
+++ b/src/geometryval.h
@@ -41,7 +41,7 @@ class Geometryval : public QWidget, public Ui::Geometryval
{
Q_OBJECT
public:
- explicit Geometryval(const MltVideoProfile profile, Timecode t, QPoint frame_size, int startPoint = 0, QWidget* parent = 0);
+ explicit Geometryval(const MltVideoProfile &profile, Timecode t, QPoint frame_size, int startPoint = 0, QWidget* parent = 0);
virtual ~Geometryval();
QDomElement getParamDesc();
QString getValue() const;
--
1.7.5.4
More information about the Kdenlive
mailing list