]> git.sesse.net Git - kdenlive/commitdiff
cppcheck fixes, patch by Mikko Rapeli [20/27]
authorJean-Baptiste Mardelle <jb@kdenlive.org>
Fri, 9 Sep 2011 23:57:38 +0000 (23:57 +0000)
committerJean-Baptiste Mardelle <jb@kdenlive.org>
Fri, 9 Sep 2011 23:57:38 +0000 (23:57 +0000)
svn path=/trunk/kdenlive/; revision=5894

src/monitor.cpp
src/monitor.h
src/renderer.cpp

index 54c708bdff3f45f00dea25f0a7c884410badf69c..d800b62d8a3989908db49d703a410db7e4f229d2 100644 (file)
@@ -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;
index 2359e745878b7d97e53860ce35c124c6f839c71d..13f107a216b7e15bab671a811273f02948462cee 100644 (file)
@@ -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;
index 796fe40d0d56b498b19dad3e3299695bc615c0a9..14b71cc04802ee92e1f843df3635f36602b34606 100644 (file)
@@ -292,7 +292,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();