diff options
author | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2021-07-18 18:24:39 +0200 |
---|---|---|
committer | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2021-07-18 18:24:39 +0200 |
commit | 86fe0a8f0682c0122439d53cc96b4b742a69ffcf (patch) | |
tree | 268858846e35a4af2353837c38f8e199fa26b597 /lib/events/eventcontent.h | |
parent | 004ebf8d5ba095ca1b11e30d86cedc2ff8c0cfe7 (diff) | |
download | libquotient-86fe0a8f0682c0122439d53cc96b4b742a69ffcf.tar.gz libquotient-86fe0a8f0682c0122439d53cc96b4b742a69ffcf.zip |
Make EventContent::TypedBase() constructor protected
TypedBase is an abstract class; constructing it doesn't make sense. But
even if it were not abstract, it's not supposed to be instantiated.
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 78c5b287..b3a5f280 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; }; |