You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: gui/projectfile.h
+15-15Lines changed: 15 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -75,15 +75,15 @@ class ProjectFile : public QObject {
75
75
* @brief Get project root path.
76
76
* @return project root path.
77
77
*/
78
-
QString getRootPath() const {
78
+
constQString&getRootPath() const {
79
79
returnmRootPath;
80
80
}
81
81
82
-
QString getBuildDir() const {
82
+
constQString&getBuildDir() const {
83
83
returnmBuildDir;
84
84
}
85
85
86
-
QString getImportProject() const {
86
+
constQString&getImportProject() const {
87
87
returnmImportProject;
88
88
}
89
89
@@ -119,15 +119,15 @@ class ProjectFile : public QObject {
119
119
* @brief Get list of defines.
120
120
* @return list of defines.
121
121
*/
122
-
QStringList getDefines() const {
122
+
constQStringList&getDefines() const {
123
123
returnmDefines;
124
124
}
125
125
126
126
/**
127
127
* @brief Get list of undefines.
128
128
* @return list of undefines.
129
129
*/
130
-
QStringList getUndefines() const {
130
+
constQStringList&getUndefines() const {
131
131
returnmUndefines;
132
132
}
133
133
@@ -151,27 +151,27 @@ class ProjectFile : public QObject {
151
151
* @brief Get list of paths to exclude from the check.
152
152
* @return list of paths.
153
153
*/
154
-
QStringList getVsConfigurations() const {
154
+
constQStringList&getVsConfigurations() const {
155
155
returnmVsConfigurations;
156
156
}
157
157
158
158
/**
159
159
* @brief Get list libraries.
160
160
* @return list of libraries.
161
161
*/
162
-
QStringList getLibraries() const {
162
+
constQStringList&getLibraries() const {
163
163
returnmLibraries;
164
164
}
165
165
166
166
/**
167
167
* @brief Get platform.
168
168
* @return Current platform. If it ends with .xml then it is a file. Otherwise it must match one of the return values from @sa cppcheck::Platform::toString() ("win32A", "unix32", ..)
169
169
*/
170
-
QString getPlatform() const {
170
+
constQString&getPlatform() const {
171
171
returnmPlatform;
172
172
}
173
173
174
-
QString getProjectName() const {
174
+
constQString&getProjectName() const {
175
175
returnmProjectName;
176
176
}
177
177
@@ -183,7 +183,7 @@ class ProjectFile : public QObject {
0 commit comments