Simplify return
This commit is contained in:
@@ -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)));
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user