X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/46b0747592074017ff0ea4b33d4a7194235886e5..1c529746ff07312e30e76fd933c628c658e3c77d:/libs/srvconf/parsers/chg_corp.cpp diff --git a/libs/srvconf/parsers/chg_corp.cpp b/libs/srvconf/parsers/chg_corp.cpp index 852fe8e1..3406739f 100644 --- a/libs/srvconf/parsers/chg_corp.cpp +++ b/libs/srvconf/parsers/chg_corp.cpp @@ -20,7 +20,7 @@ #include "chg_corp.h" -#include "resetable_utils.h" +#include "optional_utils.h" #include "stg/corp_conf.h" #include "stg/common.h" @@ -29,12 +29,10 @@ using namespace STG; -std::string CHG_CORP::Serialize(const CORP_CONF_RES & conf, const std::string & /*encoding*/) +std::string ChgCorp::serialize(const CorpConfOpt& conf, const std::string& /*encoding*/) { -std::ostringstream stream; - -appendResetableTag(stream, "name", conf.name); -appendResetableTag(stream, "cash", conf.cash); - -return stream.str(); + std::ostringstream stream; + appendResetableTag(stream, "name", conf.name); + appendResetableTag(stream, "cash", conf.cash); + return stream.str(); }