From 0b6c34199c73c6cf2dcef9a06fd812b4eb31116f Mon Sep 17 00:00:00 2001 From: Maxim Mamontov Date: Tue, 20 May 2014 19:24:28 +0300 Subject: [PATCH 1/1] Enhanced config serializer. --- projects/sgconf/config.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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 + " }"; } }; -- 2.44.2