diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2019-07-06 19:53:23 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2019-07-06 19:53:23 +0900 |
commit | 5b8079ca3d35360b7d98814654f37885f21bcb7e (patch) | |
tree | 3fee5a090bb911c5c1ed402153bd1943a1a28107 /lib/events/eventcontent.h | |
parent | 9ad25f204fa6caadf93203c42f3ea7de17dceab0 (diff) | |
download | libquotient-5b8079ca3d35360b7d98814654f37885f21bcb7e.tar.gz libquotient-5b8079ca3d35360b7d98814654f37885f21bcb7e.zip |
Fix clazy warnings
Diffstat (limited to 'lib/events/eventcontent.h')
-rw-r--r-- | lib/events/eventcontent.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/events/eventcontent.h b/lib/events/eventcontent.h index ab31a75d..254eb9a9 100644 --- a/lib/events/eventcontent.h +++ b/lib/events/eventcontent.h @@ -53,6 +53,9 @@ namespace QMatrixClient QJsonObject originalJson; protected: + Base(const Base&) = default; + Base(Base&&) = default; + virtual void fillJson(QJsonObject* o) const = 0; }; @@ -167,11 +170,14 @@ namespace QMatrixClient class TypedBase: public Base { public: - explicit TypedBase(const QJsonObject& o = {}) : Base(o) { } + 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: + using Base::Base; }; /** |