Skip to content

Commit f48b05f

Browse files
committed
ValueFlow: pass ErrorLogger by reference into ValueFlow::setValues()
1 parent e38a031 commit f48b05f

4 files changed

Lines changed: 48 additions & 51 deletions

File tree

lib/cppcheck.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,7 @@ unsigned int CppCheck::check(const std::string &path)
546546
clangimport::parseClangAstDump(&tokenizer, ast);
547547
ValueFlow::setValues(tokenizer.list,
548548
const_cast<SymbolDatabase&>(*tokenizer.getSymbolDatabase()),
549-
this,
549+
*this,
550550
&mSettings,
551551
&s_timerResults);
552552
if (mSettings.debugnormal)

lib/tokenize.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3361,9 +3361,9 @@ bool Tokenizer::simplifyTokens1(const std::string &configuration)
33613361
if (doValueFlow) {
33623362
if (mTimerResults) {
33633363
Timer t("Tokenizer::simplifyTokens1::ValueFlow", mSettings->showtime, mTimerResults);
3364-
ValueFlow::setValues(list, *mSymbolDatabase, mErrorLogger, mSettings, mTimerResults);
3364+
ValueFlow::setValues(list, *mSymbolDatabase, *mErrorLogger, mSettings, mTimerResults);
33653365
} else {
3366-
ValueFlow::setValues(list, *mSymbolDatabase, mErrorLogger, mSettings, mTimerResults);
3366+
ValueFlow::setValues(list, *mSymbolDatabase, *mErrorLogger, mSettings, mTimerResults);
33673367
}
33683368
}
33693369

0 commit comments

Comments
 (0)