refactor: Fix readability-simplify-boolean-expr

This commit is contained in:
Lars Toenning
2025-10-25 22:45:55 +02:00
parent 469d9b8421
commit 7579ce8ba4
19 changed files with 22 additions and 37 deletions

View File

@@ -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; }