aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_codepage.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2022-09-03 20:47:42 +0100
committerGravatar Sadie Powell2022-09-03 20:47:42 +0100
commit85ed0405dffc321bb2a27071816dbf5c27ed9cf3 (patch)
tree3d3cd713a2530926487c7d3547af6cc6df9ae25c /src/modules/m_codepage.cpp
parentClean up the Windows build process and remove some legacy code. (diff)
Initialize some variables inline instead of in the constructor.
Diffstat (limited to 'src/modules/m_codepage.cpp')
-rw-r--r--src/modules/m_codepage.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/modules/m_codepage.cpp b/src/modules/m_codepage.cpp
index 90d771e78..f72907bcf 100644
--- a/src/modules/m_codepage.cpp
+++ b/src/modules/m_codepage.cpp
@@ -175,7 +175,7 @@ class ModuleCodepage final
{
private:
// The currently active codepage.
- std::unique_ptr<Codepage> codepage;
+ std::unique_ptr<Codepage> codepage = nullptr;
// The character map which was set before this module was loaded.
const unsigned char* origcasemap;
@@ -237,7 +237,6 @@ public:
ModuleCodepage()
: Module(VF_VENDOR | VF_COMMON, "Allows the server administrator to define what characters are allowed in nicknames and how characters should be compared in a case insensitive way.")
, ISupport::EventListener(this)
- , codepage(nullptr)
, origcasemap(national_case_insensitive_map)
, origcasemapname(ServerInstance->Config->CaseMapping)
, origisnick(ServerInstance->IsNick)