GUI: Convert some projectfile method arguments const.

This commit is contained in:
Kimmo Varis 2011-02-27 18:36:09 +02:00
parent d6f6da10fa
commit e81fa46699
2 changed files with 8 additions and 8 deletions

View File

@ -316,22 +316,22 @@ void ProjectFile::ReadIgnores(QXmlStreamReader &reader)
while (!allRead);
}
void ProjectFile::SetIncludes(QStringList includes)
void ProjectFile::SetIncludes(const QStringList &includes)
{
mIncludeDirs = includes;
}
void ProjectFile::SetDefines(QStringList defines)
void ProjectFile::SetDefines(const QStringList &defines)
{
mDefines = defines;
}
void ProjectFile::SetCheckPaths(QStringList paths)
void ProjectFile::SetCheckPaths(const QStringList &paths)
{
mPaths = paths;
}
void ProjectFile::SetIgnoredPaths(QStringList paths)
void ProjectFile::SetIgnoredPaths(const QStringList &paths)
{
mIgnoredPaths = paths;
}

View File

@ -93,25 +93,25 @@ public:
* @brief Set list of includes.
* @param includes List of defines.
*/
void SetIncludes(QStringList includes);
void SetIncludes(const QStringList &includes);
/**
* @brief Set list of defines.
* @param defines List of defines.
*/
void SetDefines(QStringList defines);
void SetDefines(const QStringList &defines);
/**
* @brief Set list of paths to check.
* @param defines List of paths.
*/
void SetCheckPaths(QStringList paths);
void SetCheckPaths(const QStringList &paths);
/**
* @brief Set list of paths to ignore.
* @param defines List of paths.
*/
void SetIgnoredPaths(QStringList paths);
void SetIgnoredPaths(const QStringList &paths);
/**
* @brief Write project file (to disk).