mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 12:28:52 +00:00
chore: fix minor clang-tidy warnings (#6275)
This commit is contained in:
@@ -33,9 +33,9 @@ char const* const PriorityKey = "priority";
|
||||
|
||||
FileTreeView::FileTreeView(QWidget* parent, bool is_editable)
|
||||
: QTreeView{ parent }
|
||||
, model_{ new FileTreeModel(this, is_editable) }
|
||||
, proxy_{ new QSortFilterProxyModel(this) }
|
||||
, delegate_{ new FileTreeDelegate(this) }
|
||||
, model_{ new FileTreeModel{ this, is_editable } }
|
||||
, proxy_{ new QSortFilterProxyModel{ this } }
|
||||
, delegate_{ new FileTreeDelegate{ this } }
|
||||
{
|
||||
proxy_->setSourceModel(model_);
|
||||
proxy_->setSortRole(FileTreeModel::SortRole);
|
||||
@@ -59,11 +59,11 @@ void FileTreeView::onClicked(QModelIndex const& proxy_index)
|
||||
|
||||
if (model_index.column() == FileTreeModel::COL_WANTED)
|
||||
{
|
||||
model_->twiddleWanted(QModelIndexList() << model_index);
|
||||
model_->twiddleWanted(QModelIndexList{} << model_index);
|
||||
}
|
||||
else if (model_index.column() == FileTreeModel::COL_PRIORITY)
|
||||
{
|
||||
model_->twiddlePriority(QModelIndexList() << model_index);
|
||||
model_->twiddlePriority(QModelIndexList{} << model_index);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user