Fix const iteration

This commit is contained in:
Nicolas Werner 2022-09-19 21:57:25 +02:00
parent fe403ddc70
commit fc0baa86b0
No known key found for this signature in database
GPG key ID: C8D75E610773F2D9

View file

@ -647,7 +647,7 @@ RoomSettingsAllowedRoomsModel::RoomSettingsAllowedRoomsModel(RoomSettings *paren
this->listedRoomIds = QStringList(parentSpaces.begin(), parentSpaces.end());
for (const auto &e : this->allowedRoomIds) {
for (const auto &e : qAsConst(this->allowedRoomIds)) {
if (!this->parentSpaces.count(e))
this->listedRoomIds.push_back(e);
}