X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/2da962edada912d8081f7e15db0ac887b98b179e..a1274a22aa5aa97d8e6e628d37d08c1d7cecee1b:/include/stg/admin_conf.h?ds=sidebyside

diff --git a/include/stg/admin_conf.h b/include/stg/admin_conf.h
index d906a654..8b1a988e 100644
--- a/include/stg/admin_conf.h
+++ b/include/stg/admin_conf.h
@@ -78,7 +78,10 @@ struct ADMIN_CONF
 //-----------------------------------------------------------------------------
 struct 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 +93,7 @@ struct ADMIN_CONF_RES
         priv = rhs.priv;
         login = rhs.login;
         password = rhs.password;
+        return *this;
     }
     RESETABLE<PRIV> priv;
     RESETABLE<std::string> login;