File tree Expand file tree Collapse file tree 4 files changed +8
-9
lines changed Expand file tree Collapse file tree 4 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -96,7 +96,6 @@ cstyleCast
96
96
functionStatic
97
97
shadowFunction
98
98
99
- constVariable
100
99
stlcstrConstructor
101
100
stlcstrStream
102
101
uselessCallsSubstr
Original file line number Diff line number Diff line change 1
1
/*
2
2
* ModSecurity, http://www.modsecurity.org/
3
- * Copyright (c) 2015 - 2021 Trustwave Holdings, Inc. (http://www.trustwave.com/)
3
+ * Copyright (c) 2015 - 2023 Trustwave Holdings, Inc. (http://www.trustwave.com/)
4
4
*
5
5
* You may not use this file except in compliance with
6
6
* the License. You may obtain a copy of the License at
@@ -114,8 +114,8 @@ int main(int argc, char **argv) {
114
114
}
115
115
116
116
std::cout << " Operators" << std::endl;
117
- for (auto &z : operators) {
118
- auto &s = z.second ;
117
+ for (const auto &z : operators) {
118
+ const auto &s = z.second ;
119
119
std::cout << " " << std::left << std::setw (20 ) << z.first ;
120
120
std::cout << std::right << std::setw (4 ) << s;
121
121
std::cout << std::endl;
Original file line number Diff line number Diff line change 1
1
/*
2
2
* ModSecurity, http://www.modsecurity.org/
3
- * Copyright (c) 2015 - 2021 Trustwave Holdings, Inc. (http://www.trustwave.com/)
3
+ * Copyright (c) 2015 - 2023 Trustwave Holdings, Inc. (http://www.trustwave.com/)
4
4
*
5
5
* You may not use this file except in compliance with
6
6
* the License. You may obtain a copy of the License at
@@ -540,7 +540,7 @@ int main(int argc, char **argv) {
540
540
}
541
541
542
542
ModSecurityTestResults<RegressionTestResult> res;
543
- for (std::string &a : keyList) {
543
+ for (const std::string &a : keyList) {
544
544
test_number++;
545
545
if ((test.m_test_number == 0 )
546
546
|| (test_number == test.m_test_number )) {
Original file line number Diff line number Diff line change 1
1
/*
2
2
* ModSecurity, http://www.modsecurity.org/
3
- * Copyright (c) 2015 - 2021 Trustwave Holdings, Inc. (http://www.trustwave.com/)
3
+ * Copyright (c) 2015 - 2023 Trustwave Holdings, Inc. (http://www.trustwave.com/)
4
4
*
5
5
* You may not use this file except in compliance with
6
6
* the License. You may obtain a copy of the License at
@@ -168,7 +168,7 @@ int main(int argc, char **argv) {
168
168
if (r.size () == 0 ) {
169
169
std::cout << KGRN << " 0 tests failed." ;
170
170
} else {
171
- for (auto &i : r) {
171
+ for (const auto &i : r) {
172
172
if (i->skipped == true ) {
173
173
skp++;
174
174
}
@@ -203,7 +203,7 @@ int main(int argc, char **argv) {
203
203
std::cout << KGRN << " All tests passed" << RESET << std::endl;
204
204
} else {
205
205
int skp = 0 ;
206
- for (auto &i : results) {
206
+ for (const auto &i : results) {
207
207
if (i->skipped == true ) {
208
208
skp++;
209
209
}
You can’t perform that action at this time.
0 commit comments