mirror of
https://github.com/transmission/transmission.git
synced 2026-05-08 09:39:08 +01:00
fix: recent build warnings and errors (#5711)
* fix: use std::empty instead of isEmpty() * fix: fix trivially assignable warning hicpp-move-const-arg * fix: fix clang-diagnostic-unused-but-set-variable warning * fix: fix readability-braces-around-statements warning
This commit is contained in:
@@ -22,7 +22,9 @@ std::unordered_map<QString, int> const& FileTreeItem::getMyChildRows() const
|
||||
{
|
||||
// ensure that all the rows are hashed
|
||||
for (int const n = childCount(); first_unhashed_row_ < n; ++first_unhashed_row_)
|
||||
{
|
||||
child_rows_.emplace(children_[first_unhashed_row_]->name(), first_unhashed_row_);
|
||||
}
|
||||
|
||||
return child_rows_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user