A lot of string returns made RAII

This commit is contained in:
2025-08-12 03:48:47 -04:00
parent 065edc3fd0
commit 2dd41b440e
8 changed files with 55 additions and 71 deletions

View File

@ -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;
}