]> git.stg.codes - stg.git/blobdiff - include/stg/admin_conf.h
Serialize period info.
[stg.git] / include / stg / admin_conf.h
index d906a6540217acd1de25397596bd45c2d0cc9f21..7fbf44408c72ea45807a8b8f5ae5c1d942df6f6e 100644 (file)
@@ -78,7 +78,11 @@ struct ADMIN_CONF
 //-----------------------------------------------------------------------------
 struct ADMIN_CONF_RES
 {
-    ADMIN_CONF_RES()
+    ADMIN_CONF_RES() {}
+    ADMIN_CONF_RES(const ADMIN_CONF & conf)
+        : priv(conf.priv),
+          login(conf.login),
+          password(conf.password)
     {}
     ADMIN_CONF_RES(const ADMIN_CONF_RES & rhs)
         : priv(rhs.priv),
@@ -90,6 +94,7 @@ struct ADMIN_CONF_RES
         priv = rhs.priv;
         login = rhs.login;
         password = rhs.password;
+        return *this;
     }
     RESETABLE<PRIV> priv;
     RESETABLE<std::string> login;