[Kdenlive-devel] [PATCH kdenlive 24/27] const parameter as reference
Mikko Rapeli
mikko.rapeli at iki.fi
Sun Aug 28 10:25:04 UTC 2011
Found by cppcheck.
---
src/renderwidget.cpp | 2 +-
src/renderwidget.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/renderwidget.cpp b/src/renderwidget.cpp
index e4b6b9e..6136857 100644
--- a/src/renderwidget.cpp
+++ b/src/renderwidget.cpp
@@ -252,7 +252,7 @@ void RenderWidget::showInfoPanel()
}
}
-void RenderWidget::setDocumentPath(const QString path)
+void RenderWidget::setDocumentPath(const QString &path)
{
if (m_view.out_file->url().directory() == KUrl(m_projectFolder).directory()) {
const QString fileName = m_view.out_file->url().fileName();
diff --git a/src/renderwidget.h b/src/renderwidget.h
index de2a370..6dd8ac4 100644
--- a/src/renderwidget.h
+++ b/src/renderwidget.h
@@ -116,7 +116,7 @@ public:
void setProfile(MltVideoProfile profile);
void setRenderJob(const QString &dest, int progress = 0);
void setRenderStatus(const QString &dest, int status, const QString &error);
- void setDocumentPath(const QString path);
+ void setDocumentPath(const QString &path);
void reloadProfiles();
void setRenderProfile(QMap <QString, QString> props);
int waitingJobsCount() const;
--
1.7.5.4
More information about the Kdenlive
mailing list