X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/262f652e681a7b2f1686726a1f543ff5fad804da..65e7a8547ba44041cf6d0045b133e5263308cbd9:/stglibs/srvconf.lib/parsers/property.h?ds=inline diff --git a/stglibs/srvconf.lib/parsers/property.h b/stglibs/srvconf.lib/parsers/property.h index df033c99..7aa98aeb 100644 --- a/stglibs/srvconf.lib/parsers/property.h +++ b/stglibs/srvconf.lib/parsers/property.h @@ -52,14 +52,14 @@ class PROPERTY_PARSER : public BASE_PROPERTY_PARSER template <> inline -bool PROPERTY_PARSER::Parse(const char ** attr, const std::string & attrName, const std::string & fromEncoding) +bool PROPERTY_PARSER::Parse(const char ** attr, const std::string & attrName, const std::string & toEncoding) { -if (!encoding.empty() && !fromEncoding.empty()) +if (!encoding.empty() && !toEncoding.empty()) { std::string tmp; - if (!func(attr, value, attrName)) + if (!func(attr, tmp, attrName)) return false; - value = IconvString(tmp, fromEncoding, encoding); + value = IconvString(tmp, encoding, toEncoding); return true; } else