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/channel.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/discord/channel.cpp') diff --git a/src/discord/channel.cpp b/src/discord/channel.cpp index 9d47076..0770581 100644 --- a/src/discord/channel.cpp +++ b/src/discord/channel.cpp @@ -116,5 +116,8 @@ std::vector ChannelData::GetDMRecipients() const { return ret; } - return std::vector(); + return {}; +} +bool ChannelData::IsText() const noexcept { + return Type == ChannelType::GUILD_TEXT || Type == ChannelType::GUILD_NEWS; } -- cgit v1.2.3