mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 20:35:36 +00:00
refactor: migrate variant api (#6238)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user