aboutsummaryrefslogtreecommitdiff
path: root/lib/events
diff options
context:
space:
mode:
Diffstat (limited to 'lib/events')
-rw-r--r--lib/events/event.h2
-rw-r--r--lib/events/eventcontent.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/events/event.h b/lib/events/event.h
index 8f62872d..8347bb4f 100644
--- a/lib/events/event.h
+++ b/lib/events/event.h
@@ -146,7 +146,7 @@ namespace _impl {
// Actual makeIfMatches specialisations will differ in the first
// template parameter but that doesn't affect the function type
public:
- explicit EventFactory(const char* name = "")
+ explicit EventFactory(const char* name)
: name(name)
{
static auto yetToBeConstructed = true;
diff --git a/lib/events/eventcontent.h b/lib/events/eventcontent.h
index f609a603..f6dbd4bf 100644
--- a/lib/events/eventcontent.h
+++ b/lib/events/eventcontent.h
@@ -105,7 +105,7 @@ namespace EventContent {
QJsonObject originalInfoJson;
QMimeType mimeType;
QUrl url;
- qint64 payloadSize;
+ qint64 payloadSize = 0;
QString originalName;
Omittable<EncryptedFile> file = none;
};