mirror of
https://github.com/zeek/zeek.git
synced 2025-10-11 11:08:20 +00:00
Fix clang-tidy performance-unnecessary-copy-initialization warnings
This commit is contained in:
parent
909413838c
commit
cb8c35748a
15 changed files with 26 additions and 28 deletions
|
@ -357,7 +357,7 @@ bool MultiZBI::Build(ZAMCompiler* zam, const NameExpr* n, const ExprPList& args)
|
|||
break;
|
||||
|
||||
case 2: {
|
||||
auto c2 = consts[1];
|
||||
const auto& c2 = consts[1];
|
||||
auto c2_t = c2->GetType()->Tag();
|
||||
|
||||
ASSERT(c2_t == TYPE_BOOL || c2_t == TYPE_INT || c2_t == TYPE_COUNT);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue