mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
low-level coding style fixes
This commit is contained in:
parent
b4f025dda9
commit
30cb91fe35
2 changed files with 2 additions and 3 deletions
|
@ -332,7 +332,7 @@ ScriptFunc::ScriptFunc(std::string _name, FuncTypePtr ft,
|
|||
|
||||
sort(bodies.begin(), bodies.end());
|
||||
|
||||
if ( bodies.size() > 0 )
|
||||
if ( ! bodies.empty() )
|
||||
{
|
||||
current_body = bodies[0].stmts;
|
||||
current_priority = bodies[0].priority;
|
||||
|
@ -597,7 +597,6 @@ void ScriptFunc::ReplaceBody(const StmtPtr& old_body, StmtPtr new_body)
|
|||
break;
|
||||
}
|
||||
|
||||
// ASSERT(found_it);
|
||||
current_body = new_body;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue