aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2018-06-11 12:54:29 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2018-06-11 12:54:29 +0900
commit0f3e1fd2e7e70af150c9b9dae654da6f5abdc6f8 (patch)
tree1bc237e6252967d1e6a2bc07c6b9a2b39ced4eaa
parent886d8c585fbd3efe6fd298f8d5b5f980c752deae (diff)
downloadlibquotient-0f3e1fd2e7e70af150c9b9dae654da6f5abdc6f8.tar.gz
libquotient-0f3e1fd2e7e70af150c9b9dae654da6f5abdc6f8.zip
Event::toJson(): Return an empty object instead of UB
-rw-r--r--lib/events/event.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/events/event.h b/lib/events/event.h
index ed212759..91bdc632 100644
--- a/lib/events/event.h
+++ b/lib/events/event.h
@@ -100,7 +100,7 @@ namespace QMatrixClient
const QJsonObject contentJson() const;
- virtual QJsonObject toJson() const { Q_ASSERT(false); }
+ virtual QJsonObject toJson() const { Q_ASSERT(false); return {}; }
private:
Type _type;