Simplify return

This commit is contained in:
Jonas Kvinge
2021-06-22 13:58:14 +02:00
parent e5c85ddd32
commit 6d8b0b3ab6
2 changed files with 2 additions and 8 deletions

View File

@@ -534,9 +534,7 @@ void MergedProxyModel::LayoutChanged() {
bool MergedProxyModel::IsKnownModel(const QAbstractItemModel *model) const {
if (model == this || model == sourceModel() || merge_points_.contains(const_cast<QAbstractItemModel*>(model)))
return true;
return false;
return (model == this || model == sourceModel() || merge_points_.contains(const_cast<QAbstractItemModel*>(model)));
}