]> git.stg.codes - stg.git/blobdiff - include/stg/user_conf.h
Beautified error notification.
[stg.git] / include / stg / user_conf.h
index dcc19afa0c9e430674e8d83711ecc46f1568ebe9..5d65fcee9f606dc053b66a3f66b53bd173b14a43 100644 (file)
@@ -77,7 +77,7 @@ struct USER_CONF_RES
           group(),
           credit(),
           nextTariff(),
-          userdata(USERDATA_NUM, RESETABLE<std::string>()),
+          userdata(USERDATA_NUM),
           creditExpire(),
           ips()
     {
@@ -100,10 +100,7 @@ struct USER_CONF_RES
         group        = uc.group;
         credit       = uc.credit;
         nextTariff   = uc.nextTariff;
-        for (int i = 0; i < USERDATA_NUM; i++)
-            {
-            userdata[i]  = uc.userdata[i];
-            }
+        for (size_t i = 0; i < USERDATA_NUM; i++) userdata[i]  = uc.userdata[i];
         creditExpire = uc.creditExpire;
         ips          = uc.ips;
         return *this;