Skip to content

Commit a68a2c7

Browse files
authored
Merge pull request #2776 from leyao-daily/v3/master
Update to latest v3/master
2 parents a3454df + d50c17e commit a68a2c7

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

src/utils/system.cc

+2-2
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,13 @@ std::list<std::string> expandEnv(const std::string& var, int flags) {
6565
return vars;
6666
}
6767

68-
bool createDir(std::string dir, int mode, std::string *error) {
68+
bool createDir(const std::string& dir, int mode, std::string *error) {
6969

7070
return true;
7171
}
7272

7373

74-
bool isFile(std::string f) {
74+
bool isFile(const std::string& f) {
7575

7676
return true;
7777
}

src/utils/system.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ std::string find_resource(const std::string& file, const std::string& config,
3333
std::string *err);
3434
std::string get_path(const std::string& file);
3535
std::list<std::string> expandEnv(const std::string& var, int flags);
36-
bool createDir(std::string dir, int mode, std::string *error);
37-
bool isFile(std::string f);
36+
bool createDir(const std::string& dir, int mode, std::string *error);
37+
bool isFile(const std::string& f);
3838

3939
} // namespace utils
4040
} // namespace modsecurity

test/cppcheck_suppressions.txt

-2
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,6 @@ ctunullpointer:src/rule_with_operator.cc:95
6262
passedByValue:src/variables/global.h:109
6363
passedByValue:src/variables/global.h:110
6464
passedByValue:src/parser/driver.cc:45
65-
passedByValue:src/utils/system.cc:154
66-
passedByValue:src/utils/system.cc:166
6765
passedByValue:test/common/modsecurity_test.cc:49
6866
passedByValue:test/common/modsecurity_test.cc:98
6967

0 commit comments

Comments
 (0)