summary refs log tree commit diff
path: root/src/ui/RoomSettings.cpp
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2022-09-19 21:57:25 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2022-09-19 21:57:25 +0200
commitfc0baa86b08244c97e492989e3c6dac3b31a3c47 (patch)
tree9c4c9c161d512894e2d2b6ef59e94c6014a4aad9 /src/ui/RoomSettings.cpp
parentRework how access rules for rooms are modified completely (diff)
downloadnheko-fc0baa86b08244c97e492989e3c6dac3b31a3c47.tar.xz
Fix const iteration
Diffstat (limited to '')
-rw-r--r--src/ui/RoomSettings.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/RoomSettings.cpp b/src/ui/RoomSettings.cpp
index 31ae863e..9b81e777 100644
--- a/src/ui/RoomSettings.cpp
+++ b/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);
     }