]> git.stg.codes - stg.git/blobdiff - libs/srvconf/parsers/chg_service.cpp
Fix build on Darwin.
[stg.git] / libs / srvconf / parsers / chg_service.cpp
index 6bea75653c9143da9ed90069fd44f86da5724061..977af49c9c7fa0a354399889efb033ff58c77138 100644 (file)
@@ -20,7 +20,7 @@
 
 #include "chg_service.h"
 
 
 #include "chg_service.h"
 
-#include "resetable_utils.h"
+#include "optional_utils.h"
 
 #include "stg/service_conf.h"
 #include "stg/common.h"
 
 #include "stg/service_conf.h"
 #include "stg/common.h"
 
 using namespace STG;
 
 
 using namespace STG;
 
-std::string CHG_SERVICE::Serialize(const SERVICE_CONF_RES & conf, const std::string & /*encoding*/)
+std::string ChgService::serialize(const ServiceConfOpt& conf, const std::string& /*encoding*/)
 {
 {
-std::ostringstream stream;
-
-appendResetableAttr(stream, "name", conf.name);
-appendResetableAttr(stream, "comment", MaybeEncode(conf.comment));
-appendResetableAttr(stream, "cost", conf.cost);
-appendResetableAttr(stream, "payDay", conf.payDay);
-
-return stream.str();
+    std::ostringstream stream;
+    appendResetableAttr(stream, "name", conf.name);
+    appendResetableAttr(stream, "comment", maybeEncode(conf.comment));
+    appendResetableAttr(stream, "cost", conf.cost);
+    appendResetableAttr(stream, "payDay", conf.payDay);
+    return stream.str();
 }
 }