mirror of
https://github.com/zeek/zeek.git
synced 2025-10-05 16:18:19 +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
|
@ -15,7 +15,7 @@ using namespace std;
|
|||
CPPCompile::CPPCompile(vector<FuncInfo>& _funcs, ProfileFuncs& _pfs,
|
||||
const string& gen_name, const string& _addl_name,
|
||||
CPPHashManager& _hm, bool _update, bool _standalone,
|
||||
bool report_uncompilable)
|
||||
bool report_uncompilable)
|
||||
: funcs(_funcs), pfs(_pfs), hm(_hm),
|
||||
update(_update), standalone(_standalone)
|
||||
{
|
||||
|
|
|
@ -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