Fix const iteration

pull/1189/head
Nicolas Werner 2 years ago
parent fe403ddc70
commit fc0baa86b0
No known key found for this signature in database
GPG Key ID: C8D75E610773F2D9
  1. 2
      src/ui/RoomSettings.cpp

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

Loading…
Cancel
Save