mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 15:25:35 +08:00
refactor: Fix readability-simplify-boolean-expr
This commit is contained in:
@@ -112,7 +112,7 @@ namespace swift::gui::models
|
||||
bool CListModelBase<T, UseCompare>::setData(const QModelIndex &index, const QVariant &value, int role)
|
||||
{
|
||||
auto dataRole = static_cast<Qt::ItemDataRole>(role);
|
||||
if (!(dataRole == Qt::UserRole || dataRole == Qt::EditRole)) { return false; }
|
||||
if (dataRole != Qt::UserRole && dataRole != Qt::EditRole) { return false; }
|
||||
|
||||
// check / init
|
||||
if (!this->isValidIndex(index)) { return false; }
|
||||
|
||||
Reference in New Issue
Block a user