Skip to content

Commit

Permalink
vf_analyzers.cpp: fixed passedByVal selfcheck and `performance-unne…
Browse files Browse the repository at this point in the history
…cessary-value-param` clang-tidy warning
  • Loading branch information
firewave committed Aug 6, 2024
1 parent 268a78f commit 3b2a596
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/vf_analyzers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1423,7 +1423,7 @@ struct MemberExpressionAnalyzer : SubExpressionAnalyzer {

ValuePtr<Analyzer> makeMemberExpressionAnalyzer(std::string varname, const Token* e, ValueFlow::Value val, const std::shared_ptr<PartialReadContainer>& p, const Settings& s)
{
return MemberExpressionAnalyzer{std::move(varname), e, val, p, s};
return MemberExpressionAnalyzer{std::move(varname), e, std::move(val), p, s};
}

struct ContainerExpressionAnalyzer : ExpressionAnalyzer {
Expand Down

0 comments on commit 3b2a596

Please sign in to comment.