Skip to content

Commit f471fbd

Browse files
committed
Fix missed ErrorMessage constructor changes
1 parent 62a9360 commit f471fbd

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

gui/checkthread.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ void CheckThread::parseClangErrors(const QString &tool, const QString &file0, QS
426426
const std::string f0 = file0.toStdString();
427427
const std::string msg = e.message.toStdString();
428428
const std::string id = e.errorId.toStdString();
429-
ErrorMessage errmsg(std::move(callstack), f0, e.severity, msg, id, Certainty::normal);
429+
ErrorMessage errmsg(std::move(callstack), f0, e.severity, id, msg, Certainty::normal);
430430
mResult.reportErr(errmsg);
431431
}
432432
}

lib/cppcheck.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1601,8 +1601,8 @@ void CppCheck::executeRules(const std::string &tokenlist, const TokenList &list)
16011601
const ErrorMessage errmsg({},
16021602
"",
16031603
Severity::error,
1604-
msg,
16051604
"pcre_compile",
1605+
msg,
16061606
Certainty::normal);
16071607

16081608
mErrorLogger.reportErr(errmsg);
@@ -1622,8 +1622,8 @@ void CppCheck::executeRules(const std::string &tokenlist, const TokenList &list)
16221622
const ErrorMessage errmsg({},
16231623
"",
16241624
Severity::error,
1625-
msg,
16261625
"pcre_study",
1626+
msg,
16271627
Certainty::normal);
16281628

16291629
mErrorLogger.reportErr(errmsg);
@@ -1645,8 +1645,8 @@ void CppCheck::executeRules(const std::string &tokenlist, const TokenList &list)
16451645
const ErrorMessage errmsg({},
16461646
"",
16471647
Severity::error,
1648-
std::string("pcre_exec failed: ") + errorMessage,
16491648
"pcre_exec",
1649+
std::string("pcre_exec failed: ") + errorMessage,
16501650
Certainty::normal);
16511651

16521652
mErrorLogger.reportErr(errmsg);
@@ -1681,8 +1681,8 @@ void CppCheck::executeRules(const std::string &tokenlist, const TokenList &list)
16811681
const ErrorMessage errmsg({std::move(loc)},
16821682
list.getSourceFilePath(),
16831683
rule.severity,
1684-
!rule.summary.empty() ? rule.summary : "found '" + str.substr(pos1, pos2 - pos1) + "'",
16851684
rule.id,
1685+
!rule.summary.empty() ? rule.summary : "found '" + str.substr(pos1, pos2 - pos1) + "'",
16861686
Certainty::normal);
16871687

16881688
// Report error

0 commit comments

Comments
 (0)