]> git.stg.codes - stg.git/blobdiff - libs/srvconf/parsers/chg_corp.cpp
Simplify notifiers.
[stg.git] / libs / srvconf / parsers / chg_corp.cpp
index 852fe8e1b846a2ce2b7a46b5988fc4a5f15f0380..3406739f4ffb77e3aa543076c456c0bd82cc175d 100644 (file)
@@ -20,7 +20,7 @@
 
 #include "chg_corp.h"
 
 
 #include "chg_corp.h"
 
-#include "resetable_utils.h"
+#include "optional_utils.h"
 
 #include "stg/corp_conf.h"
 #include "stg/common.h"
 
 #include "stg/corp_conf.h"
 #include "stg/common.h"
 
 using namespace STG;
 
 
 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();
 }
 }