mirror of
https://github.com/transmission/transmission.git
synced 2025-12-26 13:21:44 +00:00
refactor: replace tr_variant::is_*() with tr_variant::holds_alternative() (#5930)
This commit is contained in:
@@ -164,7 +164,7 @@ void TorrentModel::updateTorrents(tr_variant* torrent_list, bool is_complete_lis
|
||||
|
||||
// build a list of the property keys
|
||||
tr_variant* const first_child = tr_variantListChild(torrent_list, 0);
|
||||
bool const table = tr_variantIsList(first_child);
|
||||
bool const table = first_child != nullptr && first_child->holds_alternative<tr_variant::Vector>();
|
||||
std::vector<tr_quark> keys;
|
||||
if (table)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user