diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-06-11 12:54:29 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-06-11 12:54:29 +0900 |
commit | 0f3e1fd2e7e70af150c9b9dae654da6f5abdc6f8 (patch) | |
tree | 1bc237e6252967d1e6a2bc07c6b9a2b39ced4eaa | |
parent | 886d8c585fbd3efe6fd298f8d5b5f980c752deae (diff) | |
download | libquotient-0f3e1fd2e7e70af150c9b9dae654da6f5abdc6f8.tar.gz libquotient-0f3e1fd2e7e70af150c9b9dae654da6f5abdc6f8.zip |
Event::toJson(): Return an empty object instead of UB
-rw-r--r-- | lib/events/event.h | 2 |
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; |