diff options
author | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2021-07-18 18:53:57 +0200 |
---|---|---|
committer | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2021-07-18 18:55:06 +0200 |
commit | 6d24915e4bdd56dbdace8358297ee9d2d9aa83a0 (patch) | |
tree | fec2b2084d884bd2c0a0ba44ef85b2874c80b230 /lib/events/eventcontent.h | |
parent | 86fe0a8f0682c0122439d53cc96b4b742a69ffcf (diff) | |
download | libquotient-6d24915e4bdd56dbdace8358297ee9d2d9aa83a0.tar.gz libquotient-6d24915e4bdd56dbdace8358297ee9d2d9aa83a0.zip |
Revert previous commit
Q_DECLARE_METATYPE is really unhappy about types without
a public default constructor.
Diffstat (limited to 'lib/events/eventcontent.h')
-rw-r--r-- | lib/events/eventcontent.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/events/eventcontent.h b/lib/events/eventcontent.h index b3a5f280..78c5b287 100644 --- a/lib/events/eventcontent.h +++ b/lib/events/eventcontent.h @@ -153,13 +153,13 @@ namespace EventContent { class TypedBase : public Base { public: + explicit TypedBase(QJsonObject o = {}) : Base(std::move(o)) {} virtual QMimeType type() const = 0; virtual const FileInfo* fileInfo() const { return nullptr; } virtual FileInfo* fileInfo() { return nullptr; } virtual const Thumbnail* thumbnailInfo() const { return nullptr; } protected: - explicit TypedBase(QJsonObject o = {}) : Base(std::move(o)) {} using Base::Base; }; |