summary refs log tree commit diff
path: root/src/InviteesModel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/InviteesModel.cpp')
-rw-r--r--src/InviteesModel.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/InviteesModel.cpp b/src/InviteesModel.cpp
index 7b49c234..76f37fad 100644
--- a/src/InviteesModel.cpp
+++ b/src/InviteesModel.cpp
@@ -18,7 +18,7 @@ InviteesModel::InviteesModel(TimelineModel *room, QObject *parent)
 void
 InviteesModel::addUser(QString mxid, QString displayName, QString avatarUrl)
 {
-    for (const auto &invitee : qAsConst(invitees_))
+    for (const auto &invitee : std::as_const(invitees_))
         if (invitee->mxid_ == mxid)
             return;
 
@@ -79,7 +79,7 @@ InviteesModel::mxids()
 {
     QStringList mxidList;
     mxidList.reserve(invitees_.size());
-    for (auto &invitee : qAsConst(invitees_))
+    for (auto &invitee : std::as_const(invitees_))
         mxidList.push_back(invitee->mxid_);
     return mxidList;
 }