]> git.sesse.net Git - kdenlive/commitdiff
const'ify
authorMontel Laurent <montel@kde.org>
Sun, 12 May 2013 06:41:10 +0000 (08:41 +0200)
committerMontel Laurent <montel@kde.org>
Sun, 12 May 2013 06:41:10 +0000 (08:41 +0200)
src/renderwidget.cpp
src/renderwidget.h

index 60ee904b2ccf40ee6615c8558aaf09205902d016..d2104d619807ebd76c27319947f17b542c5fc8d3 100644 (file)
@@ -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() << "------------------------------";
index f0dd03e6fc2a0c11b624a4a3e1ecd0b5465d2e7f..f742a1da78962158d1632836ace80d512025ae68 100644 (file)
@@ -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. */