From: Jean-Baptiste Mardelle Date: Fri, 9 Sep 2011 23:57:38 +0000 (+0000) Subject: cppcheck fixes, patch by Mikko Rapeli [20/27] X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=fc7b1b8dcdedceac156f8f3068fe04909bc9d007;p=kdenlive cppcheck fixes, patch by Mikko Rapeli [20/27] svn path=/trunk/kdenlive/; revision=5894 --- diff --git a/src/monitor.cpp b/src/monitor.cpp index 54c708bd..d800b62d 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 2359e745..13f107a2 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 796fe40d..14b71cc0 100644 --- a/src/renderer.cpp +++ b/src/renderer.cpp @@ -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();