aboutsummaryrefslogtreecommitdiff
path: root/lib/roomstateview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/roomstateview.cpp')
-rw-r--r--lib/roomstateview.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/roomstateview.cpp b/lib/roomstateview.cpp
index 94c88eee..be0f7c6c 100644
--- a/lib/roomstateview.cpp
+++ b/lib/roomstateview.cpp
@@ -5,8 +5,8 @@
using namespace Quotient;
-const StateEventBase* RoomStateView::get(const QString& evtType,
- const QString& stateKey) const
+const StateEvent* RoomStateView::get(const QString& evtType,
+ const QString& stateKey) const
{
return value({ evtType, stateKey });
}
@@ -23,10 +23,10 @@ QJsonObject RoomStateView::contentJson(const QString& evtType,
return queryOr(evtType, stateKey, &Event::contentJson, QJsonObject());
}
-const QVector<const StateEventBase*>
-RoomStateView::eventsOfType(const QString& evtType) const
+const QVector<const StateEvent*> RoomStateView::eventsOfType(
+ const QString& evtType) const
{
- auto vals = QVector<const StateEventBase*>();
+ auto vals = QVector<const StateEvent*>();
for (auto it = cbegin(); it != cend(); ++it)
if (it.key().first == evtType)
vals.append(it.value());