From: Montel Laurent Date: Sun, 12 May 2013 06:41:10 +0000 (+0200) Subject: const'ify X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=1ea8ebcfd35fd09ff13a3e065c6d635466ce33a1;p=kdenlive const'ify --- diff --git a/src/renderwidget.cpp b/src/renderwidget.cpp index 60ee904b..d2104d61 100644 --- a/src/renderwidget.cpp +++ b/src/renderwidget.cpp @@ -1506,7 +1506,7 @@ void RenderWidget::reloadProfiles() parseProfiles(); } -void RenderWidget::parseProfiles(QString meta, QString group, QString profile) +void RenderWidget::parseProfiles(const QString &meta, const QString &group, const QString &profile) { m_view.destination_list->blockSignals(true); m_view.destination_list->clear(); @@ -1546,7 +1546,7 @@ void RenderWidget::parseProfiles(QString meta, QString group, QString profile) refreshCategory(group, profile); } -void RenderWidget::parseFile(QString exportFile, bool editable) +void RenderWidget::parseFile(const QString &exportFile, bool editable) { kDebug() << "// Parsing file: " << exportFile; kDebug() << "------------------------------"; diff --git a/src/renderwidget.h b/src/renderwidget.h index f0dd03e6..f742a1da 100644 --- a/src/renderwidget.h +++ b/src/renderwidget.h @@ -195,8 +195,8 @@ private: KMessageWidget *m_infoMessage; #endif - void parseProfiles(QString meta = QString(), QString group = QString(), QString profile = QString()); - void parseFile(QString exportFile, bool editable); + void parseProfiles(const QString &meta = QString(), const QString &group = QString(), const QString &profile = QString()); + void parseFile(const QString &exportFile, bool editable); void updateButtons(); KUrl filenameWithExtension(KUrl url, QString extension); /** @brief Check if a job needs to be started. */