From: Maxim Mamontov Date: Tue, 20 May 2014 16:24:28 +0000 (+0300) Subject: Enhanced config serializer. X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/0b6c34199c73c6cf2dcef9a06fd812b4eb31116f?hp=ab68a8e9ce58ea759f71bc8971cc73c97fd895f6 Enhanced config serializer. --- diff --git a/projects/sgconf/config.h b/projects/sgconf/config.h index 9ec9616e..0c76d2de 100644 --- a/projects/sgconf/config.h +++ b/projects/sgconf/config.h @@ -57,15 +57,15 @@ struct CONFIG { std::string res("{ "); if (!configFile.empty()) - res += "configFile: '" + configFile.data() + "'"; + res += "configFile: '" + configFile.data() + "',"; if (!server.empty()) - res += ", server: '" + server.data() + "'"; + res += " server: '" + server.data() + "',"; if (!port.empty()) - res += ", port: " + x2str(port.data()); + res += " port: " + x2str(port.data()) + ","; if (!userName.empty()) - res += ", userName: '" + userName.data() + "'"; + res += " userName: '" + userName.data() + "',"; if (!userPass.empty()) - res += ", userPass: '" + userPass.data() + "'"; + res += " userPass: '" + userPass.data() + "'"; return res + " }"; } };