CollectionModel: Remove redundant const_cast

This commit is contained in:
Jonas Kvinge 2024-04-23 16:52:17 +02:00
parent 7aefe3d71b
commit 9c92ef941f
1 changed files with 1 additions and 1 deletions

View File

@ -2013,7 +2013,7 @@ void CollectionModel::ExpandAll(CollectionItem *item) const {
if (!root_) return;
if (!item) item = root_;
const_cast<CollectionModel*>(this)->LazyPopulate(const_cast<CollectionItem*>(item), false);
const_cast<CollectionModel*>(this)->LazyPopulate(item, false);
for (CollectionItem *child : item->children) {
ExpandAll(child);
}