[Kdenlive-devel] [PATCH kdenlive 05/27] const parameter as reference and end file

Mikko Rapeli mikko.rapeli at iki.fi
Sun Aug 28 10:24:45 UTC 2011


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

diff --git a/src/databackup/backupwidget.cpp b/src/databackup/backupwidget.cpp
index 64e4a88..c3e4f34 100644
--- a/src/databackup/backupwidget.cpp
+++ b/src/databackup/backupwidget.cpp
@@ -24,7 +24,7 @@
 #include <KUrl>
 
 
-BackupWidget::BackupWidget(KUrl projectUrl, KUrl projectFolder, const QString projectId, QWidget * parent) :
+BackupWidget::BackupWidget(KUrl projectUrl, KUrl projectFolder, const QString &projectId, QWidget * parent) :
         QDialog(parent)
 {
     setupUi(this);
@@ -110,4 +110,4 @@ QString BackupWidget::selectedFile()
 {
     if (!backup_list->currentItem()) return QString();
     return backup_list->currentItem()->data(Qt::UserRole).toString();
-}
\ No newline at end of file
+}
diff --git a/src/databackup/backupwidget.h b/src/databackup/backupwidget.h
index 5878f7b..cb21fd3 100644
--- a/src/databackup/backupwidget.h
+++ b/src/databackup/backupwidget.h
@@ -37,7 +37,7 @@ class BackupWidget : public QDialog, public Ui::BackupDialog_UI
     Q_OBJECT
 
 public:
-    BackupWidget(KUrl projectUrl, KUrl projectFolder, const QString projectId, QWidget * parent = 0);
+    BackupWidget(KUrl projectUrl, KUrl projectFolder, const QString &projectId, QWidget * parent = 0);
     // Constructor for extracting widget
     ~BackupWidget();
     /** @brief Return the path for selected backup file. */
-- 
1.7.5.4





More information about the Kdenlive mailing list