Skip to content

Commit e81fa46

Browse files
committed
GUI: Convert some projectfile method arguments const.
1 parent d6f6da1 commit e81fa46

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

gui/projectfile.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -316,22 +316,22 @@ void ProjectFile::ReadIgnores(QXmlStreamReader &reader)
316316
while (!allRead);
317317
}
318318

319-
void ProjectFile::SetIncludes(QStringList includes)
319+
void ProjectFile::SetIncludes(const QStringList &includes)
320320
{
321321
mIncludeDirs = includes;
322322
}
323323

324-
void ProjectFile::SetDefines(QStringList defines)
324+
void ProjectFile::SetDefines(const QStringList &defines)
325325
{
326326
mDefines = defines;
327327
}
328328

329-
void ProjectFile::SetCheckPaths(QStringList paths)
329+
void ProjectFile::SetCheckPaths(const QStringList &paths)
330330
{
331331
mPaths = paths;
332332
}
333333

334-
void ProjectFile::SetIgnoredPaths(QStringList paths)
334+
void ProjectFile::SetIgnoredPaths(const QStringList &paths)
335335
{
336336
mIgnoredPaths = paths;
337337
}

gui/projectfile.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,25 +93,25 @@ class ProjectFile : public QObject
9393
* @brief Set list of includes.
9494
* @param includes List of defines.
9595
*/
96-
void SetIncludes(QStringList includes);
96+
void SetIncludes(const QStringList &includes);
9797

9898
/**
9999
* @brief Set list of defines.
100100
* @param defines List of defines.
101101
*/
102-
void SetDefines(QStringList defines);
102+
void SetDefines(const QStringList &defines);
103103

104104
/**
105105
* @brief Set list of paths to check.
106106
* @param defines List of paths.
107107
*/
108-
void SetCheckPaths(QStringList paths);
108+
void SetCheckPaths(const QStringList &paths);
109109

110110
/**
111111
* @brief Set list of paths to ignore.
112112
* @param defines List of paths.
113113
*/
114-
void SetIgnoredPaths(QStringList paths);
114+
void SetIgnoredPaths(const QStringList &paths);
115115

116116
/**
117117
* @brief Write project file (to disk).

0 commit comments

Comments
 (0)