From 3fd1ba753d0e4cb56ecb22ddfdabd6795e17ff25 Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Thu, 8 Dec 2016 01:57:47 +0000 Subject: Store config values in a map instead of a unique vector of pairs. --- src/configreader.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/configreader.cpp') diff --git a/src/configreader.cpp b/src/configreader.cpp index 9d327532b..8263b8737 100644 --- a/src/configreader.cpp +++ b/src/configreader.cpp @@ -46,7 +46,7 @@ ServerLimits::ServerLimits(ConfigTag* tag) static ConfigTag* CreateEmptyTag() { - std::vector* items; + ConfigItems* items; return ConfigTag::create("empty", "", 0, items); } @@ -220,9 +220,9 @@ void ServerConfig::CrossCheckConnectBlocks(ServerConfig* current) if (blk_count == 0) { // No connect blocks found; make a trivial default block - std::vector* items; + ConfigItems* items; ConfigTag* tag = ConfigTag::create("connect", "", 0, items); - items->push_back(std::make_pair("allow", "*")); + (*items)["allow"] = "*"; config_data.insert(std::make_pair("connect", tag)); blk_count = 1; } -- cgit v1.3.1-10-gc9f91