From 49685c39895af67d7ffcc50fdc02150b6ee44f72 Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Tue, 5 Apr 2022 22:01:53 -0400 Subject: fix up a bunch of clang-tidy stuff mostly changing references, which i hope doesnt break stuff with models (TreeRow, iterators) since they gave me some strange problems in the past --- src/discord/objects.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/discord/objects.cpp') diff --git a/src/discord/objects.cpp b/src/discord/objects.cpp index 3c9f770..6deaca0 100644 --- a/src/discord/objects.cpp +++ b/src/discord/objects.cpp @@ -251,7 +251,7 @@ void to_json(nlohmann::json &j, const IdentifyProperties &m) { j["referring_domain_current"] = m.ReferringDomainCurrent; j["release_channel"] = m.ReleaseChannel; j["client_build_number"] = m.ClientBuildNumber; - if (m.ClientEventSource == "") + if (m.ClientEventSource.empty()) j["client_event_source"] = nullptr; else j["client_event_source"] = m.ClientEventSource; @@ -290,7 +290,7 @@ void to_json(nlohmann::json &j, const CreateMessageObject &m) { } void to_json(nlohmann::json &j, const MessageEditObject &m) { - if (m.Content.size() > 0) + if (!m.Content.empty()) j["content"] = m.Content; // todo EmbedData to_json -- cgit v1.2.3