A lot of string returns made RAII
This commit is contained in:
@ -1342,11 +1342,7 @@ std::string DilloHtmlFormImpl::encodeText(iconv_t char_encoder, std::string &&in
|
||||
void DilloHtmlFormImpl::strUrlencodeAppend(std::string &dstr, std::string_view str_)
|
||||
{
|
||||
const std::string str{ str_ };
|
||||
auto encoded= Alepha::AutoRAII
|
||||
{
|
||||
[&]{ return a_Url_encode_hex_str(str.c_str()); },
|
||||
dFree
|
||||
};
|
||||
auto encoded= a_Url_encode_hex_str(str.c_str()).value();
|
||||
dstr+= encoded;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user