]> git.sesse.net Git - kdenlive/blobdiff - src/databackup/backupwidget.cpp
const'ify
[kdenlive] / src / databackup / backupwidget.cpp
index fda02cbcd8aaa7cc0cf0a8dafa52440e5112d399..2aafd7a14d3be7fb863b484198ef856e75719737 100644 (file)
 #include <KUrl>
 
 
-BackupWidget::BackupWidget(KUrl projectUrl, KUrl projectFolder, const QString &projectId, QWidget * parent) :
+BackupWidget::BackupWidget(const KUrl &projectUrl, const KUrl &projectFolder, const QString &projectId, QWidget * parent) :
         QDialog(parent)
 {
     setupUi(this);
     setWindowTitle(i18n("Restore Backup File"));
 
-    KUrl backupFile;
-
     if (projectUrl.isEmpty()) {
         // No url, means we opened the backup dialog from an empty project
         info_label->setText(i18n("Showing all backup files in folder"));
@@ -106,7 +104,7 @@ void BackupWidget::slotDisplayBackupPreview()
     backup_preview->setPixmap(pix);
 }
 
-QString BackupWidget::selectedFile()
+QString BackupWidget::selectedFile() const
 {
     if (!backup_list->currentItem()) return QString();
     return backup_list->currentItem()->data(Qt::UserRole).toString();