X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/94e901e9f7b263786e227baa3c019fffc85c6b7d..8b5d7715bf0eb81d5627267b7bcb42cbc5d5e2f0:/stglibs/srvconf.lib/parsers/chg_user.cpp

diff --git a/stglibs/srvconf.lib/parsers/chg_user.cpp b/stglibs/srvconf.lib/parsers/chg_user.cpp
index a9fddf15..ed2002bc 100644
--- a/stglibs/srvconf.lib/parsers/chg_user.cpp
+++ b/stglibs/srvconf.lib/parsers/chg_user.cpp
@@ -21,6 +21,8 @@
 
 #include "chg_user.h"
 
+#include "resetable_utils.h"
+
 #include "stg/user_conf.h"
 #include "stg/user_stat.h"
 
@@ -30,25 +32,6 @@
 
 using namespace STG;
 
-namespace
-{
-
-template <typename T>
-void appendResetable(std::ostream & stream, const std::string & name, const T & value)
-{
-if (!value.empty())
-    stream << "<" << name << " value=\"" << value.data() << "\"/>";
-}
-
-template <typename T>
-void appendResetable(std::ostream & stream, const std::string & name, size_t suffix, const T & value)
-{
-if (!value.empty())
-    stream << "<" << name << suffix << " value=\"" << value.data() << "\"/>";
-}
-
-} // namespace anonymous
-
 CHG_USER::PARSER::PARSER(SIMPLE::CALLBACK f, void * d)
     : callback(f),
       data(d),