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/emoji.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/discord/emoji.cpp') diff --git a/src/discord/emoji.cpp b/src/discord/emoji.cpp index 1a97eb8..a21b9bd 100644 --- a/src/discord/emoji.cpp +++ b/src/discord/emoji.cpp @@ -16,7 +16,7 @@ void to_json(nlohmann::json &j, const EmojiData &m) { j["id"] = m.ID; else j["id"] = nullptr; - if (m.Name != "") + if (!m.Name.empty()) j["name"] = m.Name; else j["name"] = nullptr; -- cgit v1.2.3