mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
a number of low-level tweaks from code review
This commit is contained in:
parent
c10737d168
commit
b6daf14868
12 changed files with 79 additions and 80 deletions
|
@ -280,10 +280,7 @@ void CPPCompile::AddInit(const Obj* o, const string& init)
|
|||
void CPPCompile::AddInit(const Obj* o)
|
||||
{
|
||||
if ( obj_inits.count(o) == 0 )
|
||||
{
|
||||
vector<string> empty;
|
||||
obj_inits[o] = empty;
|
||||
}
|
||||
obj_inits[o] = {};
|
||||
}
|
||||
|
||||
void CPPCompile::NoteInitDependency(const Obj* o1, const Obj* o2)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue