Commit fb206c14 authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh
Browse files

ProjectExplorer: Pass const values by reference

Change-Id: I985aced32b95cfe4bc1bbbf7c917dc04b1d94f2d
Reviewed-by: default avatarTobias Hunger <>
parent 4cf0cae8
......@@ -442,7 +442,7 @@ void KitManager::deleteKit(Kit *k)
delete k;
QString KitManager::uniqueKitName(const Kit *k, const QString name, const QList<Kit *> &allKits)
QString KitManager::uniqueKitName(const Kit *k, const QString &name, const QList<Kit *> &allKits)
QStringList nameList;
nameList << QString(); // Disallow empty kit names!
......@@ -127,7 +127,7 @@ public:
static void deleteKit(Kit *k);
static QString uniqueKitName(const Kit *k, const QString name, const QList<Kit *> &allKits);
static QString uniqueKitName(const Kit *k, const QString &name, const QList<Kit *> &allKits);
static bool registerKit(ProjectExplorer::Kit *k);
static void deregisterKit(ProjectExplorer::Kit *k);
......@@ -352,7 +352,7 @@ Kit *KitModel::markForAddition(Kit *baseKit)
return k;
QString KitModel::findNameFor(Kit *k, const QString baseName)
QString KitModel::findNameFor(Kit *k, const QString &baseName)
QList<Kit *> kits = kitList(m_root);
return KitManager::uniqueKitName(k, baseName, kits);
......@@ -86,7 +86,7 @@ public:
void markForRemoval(Kit *k);
Kit *markForAddition(Kit *baseKit);
QString findNameFor(Kit *k, const QString baseName);
QString findNameFor(Kit *k, const QString &baseName);
void kitStateChanged();
......@@ -480,7 +480,7 @@ static inline void getProjectChoicesAndToolTips(QStringList *projectChoicesParam
*projectActionParam = projectAction;
void ProjectFileWizardExtension::initProjectChoices(const QList<GeneratedFile> generatedFiles, const QVariantMap &extraValues)
void ProjectFileWizardExtension::initProjectChoices(const QList<GeneratedFile> &generatedFiles, const QVariantMap &extraValues)
QStringList projectChoices;
QStringList projectToolTips;
......@@ -59,7 +59,7 @@ public slots:
void initializeVersionControlChoices();
void initProjectChoices(const QList<Core::GeneratedFile> generatedFiles, const QVariantMap &extraValues);
void initProjectChoices(const QList<Core::GeneratedFile> &generatedFiles, const QVariantMap &extraValues);
bool processProject(const QList<Core::GeneratedFile> &files,
bool *removeOpenProjectAttribute, QString *errorMessage);
bool processVersionControl(const QList<Core::GeneratedFile> &files, QString *errorMessage);
......@@ -438,7 +438,7 @@ void TaskFilterModel::handleRowsAboutToBeRemoved(const QModelIndex &index, int f
void TaskFilterModel::handleDataChanged(QModelIndex top, QModelIndex bottom)
void TaskFilterModel::handleDataChanged(const QModelIndex &top, const QModelIndex &bottom)
const QPair<int, int> range = findFilteredRange(top.row(), bottom.row(), m_mapping);
if (range.first > range.second)
......@@ -164,7 +164,7 @@ public:
private slots:
void handleNewRows(const QModelIndex &index, int first, int last);
void handleRowsAboutToBeRemoved(const QModelIndex &index, int first, int last);
void handleDataChanged(QModelIndex,QModelIndex bottom);
void handleDataChanged(const QModelIndex &top, const QModelIndex &bottom);
void handleReset();
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