astutils.cpp: Improved const correctness
This commit is contained in:
parent
4e9565b4e6
commit
3dfe9eff3e
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue