From 98e4ddfb21d285c8b675788c155bb204822fbd4a Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Thu, 6 Feb 2020 11:25:42 +0000 Subject: Use C++11 inline initialisation for class members. --- src/modules/m_hideoper.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/modules/m_hideoper.cpp') diff --git a/src/modules/m_hideoper.cpp b/src/modules/m_hideoper.cpp index bad967a1c..67c9c39d7 100644 --- a/src/modules/m_hideoper.cpp +++ b/src/modules/m_hideoper.cpp @@ -36,10 +36,10 @@ class HideOper : public SimpleUserModeHandler { public: - size_t opercount; + size_t opercount = 0; - HideOper(Module* Creator) : SimpleUserModeHandler(Creator, "hideoper", 'H') - , opercount(0) + HideOper(Module* Creator) + : SimpleUserModeHandler(Creator, "hideoper", 'H') { oper = true; } @@ -66,7 +66,7 @@ class ModuleHideOper { private: HideOper hm; - bool active; + bool active = false; public: ModuleHideOper() @@ -74,7 +74,6 @@ class ModuleHideOper , Who::EventListener(this) , Whois::LineEventListener(this) , hm(this) - , active(false) { } -- cgit v1.3.1-10-gc9f91