astutils.cpp: Improved const correctness

This commit is contained in:
orbitcowboy 2022-06-03 00:07:15 +02:00
parent 4e9565b4e6
commit 3dfe9eff3e
1 changed files with 1 additions and 1 deletions

View File

@ -1103,7 +1103,7 @@ static bool isSameLifetime(const Token * const tok1, const Token * const tok2)
return v1.tokvalue == v2.tokvalue; return v1.tokvalue == v2.tokvalue;
} }
static bool compareKnownValue(const Token * const tok1, const Token * const tok2, std::function<bool(const ValueFlow::Value&, const ValueFlow::Value&, bool)> compare) static bool compareKnownValue(const Token * const tok1, const Token * const tok2, const std::function<bool(const ValueFlow::Value&, const ValueFlow::Value&, bool)> & compare)
{ {
static const auto isKnownFn = std::mem_fn(&ValueFlow::Value::isKnown); static const auto isKnownFn = std::mem_fn(&ValueFlow::Value::isKnown);