aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_hideoper.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2020-02-06 11:25:42 +0000
committerGravatar Sadie Powell2020-02-06 11:25:42 +0000
commit98e4ddfb21d285c8b675788c155bb204822fbd4a (patch)
tree030eb18c989bf3c9e4768a538796e3221ca7934e /src/modules/m_hideoper.cpp
parentIn C++11 [io]fstream has std::string constructors; use them. (diff)
Use C++11 inline initialisation for class members.
Diffstat (limited to 'src/modules/m_hideoper.cpp')
-rw-r--r--src/modules/m_hideoper.cpp9
1 files changed, 4 insertions, 5 deletions
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)
{
}