mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 16:48:19 +00:00
Tweak minor const-ref/std::move things in script-opt code
This commit is contained in:
parent
4b6369a333
commit
b66f4ad500
4 changed files with 9 additions and 9 deletions
|
@ -90,7 +90,7 @@ bool Reducer::ID_IsReduced(const ID* id) const
|
|||
IsNewLocal(id);
|
||||
}
|
||||
|
||||
NameExprPtr Reducer::GenInlineBlockName(IDPtr id)
|
||||
NameExprPtr Reducer::GenInlineBlockName(const IDPtr& id)
|
||||
{
|
||||
return make_intrusive<NameExpr>(GenLocal(id));
|
||||
}
|
||||
|
@ -1004,7 +1004,7 @@ bool CSE_ValidityChecker::CheckID(const std::vector<const ID*>& ids,
|
|||
bool CSE_ValidityChecker::CheckAggrMod(const std::vector<const ID*>& ids,
|
||||
const Expr* e) const
|
||||
{
|
||||
auto e_i_t = e->GetType();
|
||||
const auto& e_i_t = e->GetType();
|
||||
if ( IsAggr(e_i_t) )
|
||||
{
|
||||
// This assignment sets an aggregate value.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue