From: Maxim Mamontov Date: Sat, 21 Jan 2017 19:26:32 +0000 (+0200) Subject: Minor fixes. X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/24d957224650e26f7c2117ed5116d2412b0dbc60?ds=inline Minor fixes. --- diff --git a/projects/sgconf/users.cpp b/projects/sgconf/users.cpp index 8ee4a3f3..018556df 100644 --- a/projects/sgconf/users.cpp +++ b/projects/sgconf/users.cpp @@ -137,7 +137,7 @@ for (size_t i = 0; i < lhs.size() && i < rhs.size(); ++i) RESETABLE ConvString(const std::string & value) { -return value; +return RESETABLE(value); } void ConvStringList(std::string value, std::vector > & res) diff --git a/stglibs/srvconf.lib/parsers/get_admin.cpp b/stglibs/srvconf.lib/parsers/get_admin.cpp index 29e35ba7..9f4ec5d4 100644 --- a/stglibs/srvconf.lib/parsers/get_admin.cpp +++ b/stglibs/srvconf.lib/parsers/get_admin.cpp @@ -39,7 +39,7 @@ bool GetValue(const char ** attr, PRIV & value, const std::string & attrNa uint32_t priv; if (!GetValue(attr, priv, attrName)) return false; -value = priv; +value = PRIV(priv); return true; }