Commit 1ea8ebcf authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

const'ify

parent ff2dda64
...@@ -1506,7 +1506,7 @@ void RenderWidget::reloadProfiles() ...@@ -1506,7 +1506,7 @@ void RenderWidget::reloadProfiles()
parseProfiles(); 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->blockSignals(true);
m_view.destination_list->clear(); m_view.destination_list->clear();
...@@ -1546,7 +1546,7 @@ void RenderWidget::parseProfiles(QString meta, QString group, QString profile) ...@@ -1546,7 +1546,7 @@ void RenderWidget::parseProfiles(QString meta, QString group, QString profile)
refreshCategory(group, profile); refreshCategory(group, profile);
} }
void RenderWidget::parseFile(QString exportFile, bool editable) void RenderWidget::parseFile(const QString &exportFile, bool editable)
{ {
kDebug() << "// Parsing file: " << exportFile; kDebug() << "// Parsing file: " << exportFile;
kDebug() << "------------------------------"; kDebug() << "------------------------------";
......
...@@ -195,8 +195,8 @@ private: ...@@ -195,8 +195,8 @@ private:
KMessageWidget *m_infoMessage; KMessageWidget *m_infoMessage;
#endif #endif
void parseProfiles(QString meta = QString(), QString group = QString(), QString profile = QString()); void parseProfiles(const QString &meta = QString(), const QString &group = QString(), const QString &profile = QString());
void parseFile(QString exportFile, bool editable); void parseFile(const QString &exportFile, bool editable);
void updateButtons(); void updateButtons();
KUrl filenameWithExtension(KUrl url, QString extension); KUrl filenameWithExtension(KUrl url, QString extension);
/** @brief Check if a job needs to be started. */ /** @brief Check if a job needs to be started. */
......
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