mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
const-ify member function
This commit is contained in:
parent
ffbbacd3b1
commit
735d584d9f
2 changed files with 2 additions and 2 deletions
|
@ -309,7 +309,7 @@ AttrsInfo::AttrsInfo(CPPCompile* _c, const AttributesPtr& _attrs) : CompoundItem
|
|||
for ( const auto& a : _attrs->GetAttrs() )
|
||||
{
|
||||
ASSERT(c->ProcessedAttr().count(a.get()) > 0);
|
||||
auto gi = c->ProcessedAttr()[a.get()];
|
||||
const auto& gi = c->ProcessedAttr().at(a.get());
|
||||
init_cohort = max(init_cohort, gi->InitCohort() + 1);
|
||||
vals.emplace_back(Fmt(gi->Offset()));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue