Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
chrchr-github committed Jan 3, 2025
1 parent f864c2b commit bf3a994
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/check.h
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ class CPPCHECKLIB Check {
/** Base class used for whole-program analysis */
class CPPCHECKLIB FileInfo {
public:
explicit FileInfo(const std::string& f0 = {}) : file0(f0) {}
explicit FileInfo(std::string f0 = {}) : file0(std::move(f0)) {}
virtual ~FileInfo() = default;
virtual std::string toString() const {
return std::string();
Expand Down
2 changes: 1 addition & 1 deletion test/cli/whole-program_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ def __test_nullpointer_file0(extra_args):

args += extra_args

ret, stdout, stderr = cppcheck(args, cwd=__script_dir)
ret, _, stderr = cppcheck(args, cwd=__script_dir)
results = ET.fromstring(stdout)
file0 = ''
for e in results.findall('errors/error'):
Expand Down

0 comments on commit bf3a994

Please sign in to comment.