From 85ed0405dffc321bb2a27071816dbf5c27ed9cf3 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sat, 3 Sep 2022 20:47:42 +0100 Subject: Initialize some variables inline instead of in the constructor. --- src/modules/m_codepage.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/modules/m_codepage.cpp') 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; + std::unique_ptr 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) -- cgit v1.3.1-10-gc9f91