aboutsummaryrefslogtreecommitdiff
path: root/lib/events
diff options
context:
space:
mode:
authorAlexey Rusakov <Kitsune-Ral@users.sf.net>2022-06-22 10:17:26 +0200
committerAlexey Rusakov <Kitsune-Ral@users.sf.net>2022-06-22 14:03:47 +0200
commit6a2cec476b72d44ecf1cd05e47724d325a46f246 (patch)
treeae532a4ed83b20950b20c6b937fee2f11acc0bb3 /lib/events
parent610631675826bb572bff97ce7d16d07097f14e3f (diff)
downloadlibquotient-6a2cec476b72d44ecf1cd05e47724d325a46f246.tar.gz
libquotient-6a2cec476b72d44ecf1cd05e47724d325a46f246.zip
Address a few more Sonar warnings
Diffstat (limited to 'lib/events')
-rw-r--r--lib/events/eventcontent.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/events/eventcontent.h b/lib/events/eventcontent.h
index ea240122..1e2f3615 100644
--- a/lib/events/eventcontent.h
+++ b/lib/events/eventcontent.h
@@ -36,6 +36,10 @@ namespace EventContent {
public:
QJsonObject originalJson;
+ // You can't assign those classes
+ Base& operator=(const Base&) = delete;
+ Base& operator=(Base&&) = delete;
+
protected:
Base(const Base&) = default;
Base(Base&&) = default;
@@ -145,8 +149,8 @@ namespace EventContent {
class QUOTIENT_API Thumbnail : public ImageInfo {
public:
using ImageInfo::ImageInfo;
- Thumbnail(const QJsonObject& infoJson,
- const Omittable<EncryptedFileMetadata>& efm = none);
+ explicit Thumbnail(const QJsonObject& infoJson,
+ const Omittable<EncryptedFileMetadata>& efm = none);
//! \brief Add thumbnail information to the passed `info` JSON object
void dumpTo(QJsonObject& infoJson) const;