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.cpp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'src/modules.cpp') diff --git a/src/modules.cpp b/src/modules.cpp index 438d74a01..254cb2918 100644 --- a/src/modules.cpp +++ b/src/modules.cpp @@ -55,13 +55,6 @@ Version::Version(const std::string &desc, int flags, const std::string& linkdata } // These declarations define the behavours of the base class Module (which does nothing at all) - -Module::Module() - : ModuleDLLManager(NULL) - , dying(false) -{ -} - CullResult Module::cull() { return classbase::cull(); @@ -630,7 +623,8 @@ std::string ModuleManager::ExpandModName(const std::string& modname) } dynamic_reference_base::dynamic_reference_base(Module* Creator, const std::string& Name) - : name(Name), hook(NULL), value(NULL), creator(Creator) + : name(Name) + , creator(Creator) { if (!dynrefs) dynrefs = new insp::intrusive_list; -- cgit v1.3.1-10-gc9f91