aboutsummaryrefslogtreecommitdiff
path: root/lib/events/event.cpp
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2019-04-04 21:27:38 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2019-04-06 20:32:48 +0900
commit432e7fd7107d8260e0016a1adcd8d94263dc1044 (patch)
tree71171a541e508f7a97b1d843c707c7ef296374cb /lib/events/event.cpp
parent8035ec464ce797abab5e464c2cfb485f7fa14d06 (diff)
downloadlibquotient-432e7fd7107d8260e0016a1adcd8d94263dc1044.tar.gz
libquotient-432e7fd7107d8260e0016a1adcd8d94263dc1044.zip
Clean up on clang-tidy/clazy analysis
Diffstat (limited to 'lib/events/event.cpp')
-rw-r--r--lib/events/event.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/events/event.cpp b/lib/events/event.cpp
index c98dfbb6..6505d89a 100644
--- a/lib/events/event.cpp
+++ b/lib/events/event.cpp
@@ -38,7 +38,8 @@ event_type_t EventTypeRegistry::initializeTypeId(event_mtype_t matrixTypeId)
QString EventTypeRegistry::getMatrixType(event_type_t typeId)
{
- return typeId < get().eventTypes.size() ? get().eventTypes[typeId] : "";
+ return typeId < get().eventTypes.size()
+ ? get().eventTypes[typeId] : QString();
}
Event::Event(Type type, const QJsonObject& json)