Commit 8cd7e7b5 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Add more const'ref

parent 9aad7a15
...@@ -4103,7 +4103,7 @@ void MainWindow::slotStartClipAction() ...@@ -4103,7 +4103,7 @@ void MainWindow::slotStartClipAction()
m_projectList->startClipFilterJob(filtername, condition); m_projectList->startClipFilterJob(filtername, condition);
} }
void MainWindow::slotTranscode(KUrl::List urls) void MainWindow::slotTranscode(const KUrl::List &urls)
{ {
QString params; QString params;
QString desc; QString desc;
...@@ -4133,7 +4133,7 @@ void MainWindow::slotTranscodeClip() ...@@ -4133,7 +4133,7 @@ void MainWindow::slotTranscodeClip()
slotTranscode(urls); slotTranscode(urls);
} }
void MainWindow::slotSetDocumentRenderProfile(QMap <QString, QString> props) void MainWindow::slotSetDocumentRenderProfile(const QMap <QString, QString> &props)
{ {
if (m_activeDocument == NULL) return; if (m_activeDocument == NULL) return;
QMapIterator<QString, QString> i(props); QMapIterator<QString, QString> i(props);
...@@ -4607,7 +4607,7 @@ void MainWindow::slotArchiveProject() ...@@ -4607,7 +4607,7 @@ void MainWindow::slotArchiveProject()
} }
void MainWindow::slotOpenBackupDialog(const KUrl url) void MainWindow::slotOpenBackupDialog(const KUrl &url)
{ {
KUrl projectFile; KUrl projectFile;
KUrl projectFolder; KUrl projectFolder;
......
...@@ -497,12 +497,12 @@ private slots: ...@@ -497,12 +497,12 @@ private slots:
void slotUpdateClipType(QAction *action); void slotUpdateClipType(QAction *action);
void slotShowTimeline(bool show); void slotShowTimeline(bool show);
void slotMaximizeCurrent(bool show); void slotMaximizeCurrent(bool show);
void slotTranscode(KUrl::List urls = KUrl::List()); void slotTranscode(const KUrl::List &urls = KUrl::List());
void slotStartClipAction(); void slotStartClipAction();
void slotTranscodeClip(); void slotTranscodeClip();
/** @brief Archive project: creates a copy of the project file with all clips in a new folder. */ /** @brief Archive project: creates a copy of the project file with all clips in a new folder. */
void slotArchiveProject(); void slotArchiveProject();
void slotSetDocumentRenderProfile(QMap <QString, QString> props); void slotSetDocumentRenderProfile(const QMap<QString, QString> &props);
void slotPrepareRendering(bool scriptExport, bool zoneOnly, const QString &chapterFile); void slotPrepareRendering(bool scriptExport, bool zoneOnly, const QString &chapterFile);
/** @brief Switches between displaying frames or timecode. /** @brief Switches between displaying frames or timecode.
...@@ -554,7 +554,7 @@ private slots: ...@@ -554,7 +554,7 @@ private slots:
/** @brief Insert current project's timecode into the notes widget. */ /** @brief Insert current project's timecode into the notes widget. */
void slotInsertNotesTimecode(); void slotInsertNotesTimecode();
/** @brief Open the project's backupdialog. */ /** @brief Open the project's backupdialog. */
void slotOpenBackupDialog(const KUrl url = KUrl()); void slotOpenBackupDialog(const KUrl &url = KUrl());
/** @brief Disable proxies for this project. */ /** @brief Disable proxies for this project. */
void slotDisableProxies(); void slotDisableProxies();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment