Obj: use C++ initializers

This commit is contained in:
Max Kellermann 2020-02-07 11:02:26 +01:00
parent 2ac48ff1d4
commit 97f07fa727

View file

@ -53,9 +53,6 @@ class BroObj {
public:
BroObj()
{
ref_cnt = 1;
notify_plugins = false;
// A bit of a hack. We'd like to associate location
// information with every object created when parsing,
// since for them, the location is generally well-defined.
@ -141,8 +138,8 @@ private:
friend inline void Ref(BroObj* o);
friend inline void Unref(BroObj* o);
bool notify_plugins;
int ref_cnt;
bool notify_plugins = false;
int ref_cnt = 1;
// If non-zero, do not print runtime errors. Useful for
// speculative evaluation.