From: Attila Molnar Date: Tue, 9 Dec 2014 11:30:21 +0000 (+0100) Subject: Initialize ServerConfig::EmptyTag using the init list X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=94b3599a48f3b53683327be3703a8471f81b916b;p=user%2Fhenk%2Fcode%2Finspircd.git Initialize ServerConfig::EmptyTag using the init list --- diff --git a/src/configreader.cpp b/src/configreader.cpp index 54c32d846..df58ec812 100644 --- a/src/configreader.cpp +++ b/src/configreader.cpp @@ -29,7 +29,14 @@ #include "configparser.h" #include +static ConfigTag* CreateEmptyTag() +{ + std::vector* items; + return ConfigTag::create("empty", "", 0, items); +} + ServerConfig::ServerConfig() + : EmptyTag(CreateEmptyTag()) { RawLog = HideBans = HideSplits = UndernetMsgPrefix = false; WildcardIPv6 = InvBypassModes = true; @@ -41,9 +48,6 @@ ServerConfig::ServerConfig() OperMaxChans = 30; c_ipv4_range = 32; c_ipv6_range = 128; - - std::vector* items; - EmptyTag = ConfigTag::create("empty", "", 0, items); } ServerConfig::~ServerConfig()