[Kdenlive-devel] [PATCH kdenlive 22/27] const parameter as reference

Mikko Rapeli mikko.rapeli at iki.fi
Sun Aug 28 10:25:02 UTC 2011


Found by cppcheck.
---
 src/recmonitor.cpp |    4 ++--
 src/recmonitor.h   |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/recmonitor.cpp b/src/recmonitor.cpp
index 41ea650..0ace145 100644
--- a/src/recmonitor.cpp
+++ b/src/recmonitor.cpp
@@ -192,7 +192,7 @@ void RecMonitor::slotConfigure()
     emit showConfigDialog(4, device_selector->currentIndex());
 }
 
-void RecMonitor::slotUpdateCaptureFolder(const QString currentProjectFolder)
+void RecMonitor::slotUpdateCaptureFolder(const QString &currentProjectFolder)
 {
     if (KdenliveSettings::capturetoprojectfolder()) m_capturePath = currentProjectFolder;
     else m_capturePath = KdenliveSettings::capturefolder();
@@ -305,7 +305,7 @@ void RecMonitor::slotSetInfoMessage(const QString &message)
     m_logger.insertItem(0, message);
 }
 
-QPixmap RecMonitor::mergeSideBySide(const QPixmap& pix, const QString txt)
+QPixmap RecMonitor::mergeSideBySide(const QPixmap& pix, const QString &txt)
 {
     QPainter p;
     QRect r = QApplication::fontMetrics().boundingRect(QRect(0, 0, video_frame->width(), video_frame->height()), Qt::AlignLeft, txt);
diff --git a/src/recmonitor.h b/src/recmonitor.h
index d9bd734..12056d7 100644
--- a/src/recmonitor.h
+++ b/src/recmonitor.h
@@ -105,7 +105,7 @@ private:
     VideoPreviewContainer *m_videoBox;
     bool m_analyse;
     void checkDeviceAvailability();
-    QPixmap mergeSideBySide(const QPixmap& pix, const QString txt);
+    QPixmap mergeSideBySide(const QPixmap& pix, const QString &txt);
     void manageCapturedFiles();
     /** @brief Build MLT producer for device, using path as profile. */
     void buildMltDevice(const QString &path);
@@ -133,7 +133,7 @@ public slots:
     void stop();
     void start();
     void slotStopCapture();
-    void slotUpdateCaptureFolder(const QString currentProjectFolder);
+    void slotUpdateCaptureFolder(const QString &currentProjectFolder);
 
 signals:
     void renderPosition(int);
-- 
1.7.5.4





More information about the Kdenlive mailing list