diff options
author | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2021-12-10 19:26:23 +0100 |
---|---|---|
committer | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2022-01-23 22:40:20 +0100 |
commit | 08612cb253417fe70ef45a1ad08663a0745d748a (patch) | |
tree | 832f57e533a0f07365f6e20b091ddfc18f9169f4 /lib/events/simplestateevents.h | |
parent | 9ae0d4e45befc79f621b03dc4efe869cd4277e06 (diff) | |
download | libquotient-08612cb253417fe70ef45a1ad08663a0745d748a.tar.gz libquotient-08612cb253417fe70ef45a1ad08663a0745d748a.zip |
No more default construction of events
Default construction was only done to support stubbed state in Room
and even that did not really use those, opting to construct an event
from an empty QJsonObject instead. Now that Room doesn't have
stubbed state, default constructors are even less needed.
Diffstat (limited to 'lib/events/simplestateevents.h')
-rw-r--r-- | lib/events/simplestateevents.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/events/simplestateevents.h b/lib/events/simplestateevents.h index e6c05880..9610574b 100644 --- a/lib/events/simplestateevents.h +++ b/lib/events/simplestateevents.h @@ -35,7 +35,6 @@ namespace EventContent { public: \ using value_type = content_type::value_type; \ DEFINE_EVENT_TYPEID(_TypeId, _Name) \ - explicit _Name() : _Name(value_type()) {} \ template <typename T> \ explicit _Name(T&& value) \ : StateEvent(typeId(), matrixTypeId(), QString(), \ |