aboutsummaryrefslogtreecommitdiff
path: root/lib/room.h
diff options
context:
space:
mode:
authorAlexey Rusakov <Kitsune-Ral@users.sf.net>2022-09-03 19:12:42 +0200
committerAlexey Rusakov <Kitsune-Ral@users.sf.net>2022-09-04 18:42:11 +0200
commit80499cc7619bb857c284e6e89db728ccee9c61f6 (patch)
tree5405d7ed5f6128157a2e39de0c8621141f490831 /lib/room.h
parent3fa9afc796788e0c7f44db15c21a5ba1294d3b2d (diff)
downloadlibquotient-80499cc7619bb857c284e6e89db728ccee9c61f6.tar.gz
libquotient-80499cc7619bb857c284e6e89db728ccee9c61f6.zip
More cleanup
Diffstat (limited to 'lib/room.h')
-rw-r--r--lib/room.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/room.h b/lib/room.h
index 44504691..b454bfbc 100644
--- a/lib/room.h
+++ b/lib/room.h
@@ -770,11 +770,10 @@ public:
"make sure to check its result for nullptrs")]] //
const EvT* getCurrentState(const QString& stateKey = {}) const
{
- QT_IGNORE_DEPRECATIONS(
- const auto* evt = eventCast<const EvT>(
- getCurrentState(EvT::matrixTypeId(), stateKey));)
+ QT_IGNORE_DEPRECATIONS(const auto* evt = eventCast<const EvT>(
+ getCurrentState(EvT::TypeId, stateKey));)
Q_ASSERT(evt);
- Q_ASSERT(evt->matrixTypeId() == EvT::matrixTypeId()
+ Q_ASSERT(evt->matrixType() == EvT::TypeId
&& evt->stateKey() == stateKey);
return evt;
}