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:
Charles Kerr
2023-07-01 10:22:15 -05:00
committed by GitHub
parent 9c17463a80
commit 4c282bdbb4
4 changed files with 6 additions and 4 deletions
+2
View File
@@ -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_;
}