mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Obj: use C++ initializers
This commit is contained in:
parent
2ac48ff1d4
commit
97f07fa727
1 changed files with 2 additions and 5 deletions
|
@ -53,9 +53,6 @@ class BroObj {
|
||||||
public:
|
public:
|
||||||
BroObj()
|
BroObj()
|
||||||
{
|
{
|
||||||
ref_cnt = 1;
|
|
||||||
notify_plugins = false;
|
|
||||||
|
|
||||||
// A bit of a hack. We'd like to associate location
|
// A bit of a hack. We'd like to associate location
|
||||||
// information with every object created when parsing,
|
// information with every object created when parsing,
|
||||||
// since for them, the location is generally well-defined.
|
// since for them, the location is generally well-defined.
|
||||||
|
@ -141,8 +138,8 @@ private:
|
||||||
friend inline void Ref(BroObj* o);
|
friend inline void Ref(BroObj* o);
|
||||||
friend inline void Unref(BroObj* o);
|
friend inline void Unref(BroObj* o);
|
||||||
|
|
||||||
bool notify_plugins;
|
bool notify_plugins = false;
|
||||||
int ref_cnt;
|
int ref_cnt = 1;
|
||||||
|
|
||||||
// If non-zero, do not print runtime errors. Useful for
|
// If non-zero, do not print runtime errors. Useful for
|
||||||
// speculative evaluation.
|
// speculative evaluation.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue