mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
restored RecordType::Create, now marked as deprecated
tidying of namespaces and private class members simplification of flagging record field initializations that should be skipped address peculiar MSVC compilation complaint for IntrusivePtr's
This commit is contained in:
parent
ee358affda
commit
c19eba62d6
5 changed files with 67 additions and 32 deletions
|
@ -1218,7 +1218,7 @@ public:
|
|||
if ( (*record_val)[field] )
|
||||
return true;
|
||||
|
||||
return bool(rt->DeferredInits()[field]);
|
||||
return rt->DeferredInits()[field] != nullptr;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -1247,7 +1247,7 @@ public:
|
|||
if ( ! fi )
|
||||
return nullptr;
|
||||
|
||||
fv = (*fi)->Generate();
|
||||
fv = fi->Generate();
|
||||
}
|
||||
|
||||
return fv->ToVal(rt->GetFieldType(field));
|
||||
|
@ -1458,7 +1458,7 @@ protected:
|
|||
{
|
||||
const auto& fi = rt->DeferredInits()[field];
|
||||
if ( fi )
|
||||
f = (*fi)->Generate();
|
||||
f = fi->Generate();
|
||||
}
|
||||
|
||||
return f;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue