X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/262f652e681a7b2f1686726a1f543ff5fad804da..95fbaf3fe639c84d7aab1d8c25cecdb9f8e7072a:/stglibs/srvconf.lib/parsers/property.h?ds=sidebyside 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