From e826d4c63365dde4c988453846437dcb65370945 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 31 Aug 2017 01:34:38 +0300 Subject: Improve setting default values for configuration objects. --- src/configmanager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/configmanager.cpp') diff --git a/src/configmanager.cpp b/src/configmanager.cpp index 1039c5a01..b34688b76 100644 --- a/src/configmanager.cpp +++ b/src/configmanager.cpp @@ -79,7 +79,7 @@ void ConfigManager::initServerConfig(const std::string &serverName) { fclose(configFile); serverConfig.init(configPath); - serverConfig.setDefaultValues(getConfigDefaults()); + setConfigDefaults(serverConfig); logger->log("serverConfigPath: " + configPath); } else @@ -165,7 +165,7 @@ void ConfigManager::initConfiguration() fclose(configFile); config.init(configPath); logger->log1("init 3"); - config.setDefaultValues(getConfigDefaults()); + setConfigDefaults(config); logger->log("configuration file: " + configPath); } } -- cgit v1.2.3-70-g09d2