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: 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.