From 97f07fa7279a5e67c58aea248163d74d75f2843b Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 7 Feb 2020 11:02:26 +0100 Subject: [PATCH] Obj: use C++ initializers --- src/Obj.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/Obj.h b/src/Obj.h index 5652c8438c..9920e5c588 100644 --- a/src/Obj.h +++ b/src/Obj.h @@ -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.