X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/46b0747592074017ff0ea4b33d4a7194235886e5..7ef8de40e0bcdd931f5a400fd586fee3a1aaaeea:/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(); }