diff options
author | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2022-07-29 18:13:14 +0200 |
---|---|---|
committer | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2022-08-05 12:36:44 +0200 |
commit | 3214feeb031fa231c7c42c21c53410302966e32e (patch) | |
tree | 4ed144212698e5269be970bbffd459949ea5fd6e /lib/room.cpp | |
parent | deb6c1141af445de6f3f1fd5afc83ed2ac4def4b (diff) | |
download | libquotient-3214feeb031fa231c7c42c21c53410302966e32e.tar.gz libquotient-3214feeb031fa231c7c42c21c53410302966e32e.zip |
eventloader.h: use basicJson() in a uniform way
There's no particular reason the order of parameters in
StateEventBase::basicJson() should be as it was, and (the only)
loadStateEvent() usage in room.cpp suggests the unified order is more
convenient. Besides, this order is aligned with that in
the StateEventBase constructor.
Diffstat (limited to 'lib/room.cpp')
-rw-r--r-- | lib/room.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/room.cpp b/lib/room.cpp index f5d8709b..7fd41a4f 100644 --- a/lib/room.cpp +++ b/lib/room.cpp @@ -219,8 +219,9 @@ public: // In the absence of a real event, make a stub as-if an event // with empty content has been received. Event classes should be // prepared for empty/invalid/malicious content anyway. - stubbedState.emplace(evtKey, loadStateEvent(evtKey.first, {}, - evtKey.second)); + stubbedState.emplace(evtKey, + loadEvent<StateEventBase>(evtKey.first, + evtKey.second)); qCDebug(STATE) << "A new stub event created for key {" << evtKey.first << evtKey.second << "}"; qCDebug(STATE) << "Stubbed state size:" << stubbedState.size(); |