[Kdenlive-devel] [PATCH kdenlive 20/27] cont parameter as reference
Mikko Rapeli
mikko.rapeli at iki.fi
Sun Aug 28 10:25:00 UTC 2011
Found by cppcheck.
---
src/monitor.cpp | 2 +-
src/monitor.h | 2 +-
src/renderer.cpp | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/monitor.cpp b/src/monitor.cpp
index 54c708b..d800b62 100644
--- a/src/monitor.cpp
+++ b/src/monitor.cpp
@@ -857,7 +857,7 @@ void Monitor::slotSaveZone()
//render->setSceneList(doc, 0);
}
-void Monitor::resetProfile(const QString profile)
+void Monitor::resetProfile(const QString &profile)
{
m_timePos->updateTimeCode(m_monitorManager->timecode());
if (render == NULL) return;
diff --git a/src/monitor.h b/src/monitor.h
index 2359e74..13f107a 100644
--- a/src/monitor.h
+++ b/src/monitor.h
@@ -114,7 +114,7 @@ public:
~Monitor();
Render *render;
AbstractRender *abstractRender();
- void resetProfile(const QString profile);
+ void resetProfile(const QString &profile);
const QString name() const;
void resetSize();
bool isActive() const;
diff --git a/src/renderer.cpp b/src/renderer.cpp
index 2142f93..879d676 100644
--- a/src/renderer.cpp
+++ b/src/renderer.cpp
@@ -291,7 +291,7 @@ Mlt::Producer *Render::invalidProducer(const QString &id)
return clip;
}
-int Render::resetProfile(const QString profileName, bool dropSceneList)
+int Render::resetProfile(const QString &profileName, bool dropSceneList)
{
QString scene;
if (!dropSceneList) scene = sceneList();
--
1.7.5.4
More information about the Kdenlive
mailing list