mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 11:00:48 +03:00
Fix const iteration
This commit is contained in:
parent
fe403ddc70
commit
fc0baa86b0
1 changed files with 1 additions and 1 deletions
|
@ -647,7 +647,7 @@ RoomSettingsAllowedRoomsModel::RoomSettingsAllowedRoomsModel(RoomSettings *paren
|
||||||
|
|
||||||
this->listedRoomIds = QStringList(parentSpaces.begin(), parentSpaces.end());
|
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))
|
if (!this->parentSpaces.count(e))
|
||||||
this->listedRoomIds.push_back(e);
|
this->listedRoomIds.push_back(e);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue