aboutsummaryrefslogtreecommitdiff
path: root/lib/events
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2020-12-24 18:20:04 +0100
committerKitsune Ral <Kitsune-Ral@users.sf.net>2020-12-24 18:20:04 +0100
commit0a2acd750a4155969092be674ed3dd9a71b2354f (patch)
tree37a45405633d2a229f60a478f05979218f8c7d38 /lib/events
parent1a832ae9b6a0d679b551fd644136e4bc17e7db29 (diff)
downloadlibquotient-0a2acd750a4155969092be674ed3dd9a71b2354f.tar.gz
libquotient-0a2acd750a4155969092be674ed3dd9a71b2354f.zip
Fix clang-tidy/clazy warnings
Diffstat (limited to 'lib/events')
-rw-r--r--lib/events/typingevent.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/events/typingevent.cpp b/lib/events/typingevent.cpp
index 0c5fc6ba..a95d2f0d 100644
--- a/lib/events/typingevent.cpp
+++ b/lib/events/typingevent.cpp
@@ -25,6 +25,7 @@ using namespace Quotient;
TypingEvent::TypingEvent(const QJsonObject& obj) : Event(typeId(), obj)
{
const auto& array = contentJson()["user_ids"_ls].toArray();
+ _users.reserve(array.size());
for (const auto& user : array)
_users.push_back(user.toString());
}