refactor: migrate variant api (#6238)

This commit is contained in:
Charles Kerr
2023-11-10 15:41:32 -06:00
committed by GitHub
parent 69ab6a07de
commit 37f01fac4c
9 changed files with 33 additions and 91 deletions

View File

@@ -214,7 +214,7 @@ static bool replaceURL(tr_variant* metainfo, std::string_view oldval, std::strin
auto const newstr = replaceSubstr(sv, oldval, newval);
fmt::print("\tReplaced in 'announce-list' tier #{:d}: '{:s}' --> '{:s}'\n", tierCount + 1, sv, newstr);
node->clear();
tr_variantInitStr(node, newstr);
*node = newstr;
changed = true;
}