mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Adjust GetAttrs() usage in ProfileFunc::PreExpr() to const-reference
This commit is contained in:
parent
dc9e7f6d03
commit
bdadbabf18
1 changed files with 2 additions and 2 deletions
|
@ -343,7 +343,7 @@ TraversalCode ProfileFunc::PreExpr(const Expr* e)
|
|||
case EXPR_SET_CONSTRUCTOR:
|
||||
{
|
||||
auto sc = static_cast<const SetConstructorExpr*>(e);
|
||||
auto attrs = sc->GetAttrs();
|
||||
const auto& attrs = sc->GetAttrs();
|
||||
|
||||
if ( attrs )
|
||||
constructor_attrs.insert(attrs.get());
|
||||
|
@ -353,7 +353,7 @@ TraversalCode ProfileFunc::PreExpr(const Expr* e)
|
|||
case EXPR_TABLE_CONSTRUCTOR:
|
||||
{
|
||||
auto tc = static_cast<const TableConstructorExpr*>(e);
|
||||
auto attrs = tc->GetAttrs();
|
||||
const auto& attrs = tc->GetAttrs();
|
||||
|
||||
if ( attrs )
|
||||
constructor_attrs.insert(attrs.get());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue