Fix all warnings from the cppcoreguidelines-pro-type-member-init clang-tidy check (#4426)

This commit is contained in:
pajlada
2023-09-09 13:11:19 +02:00
committed by GitHub
parent 877a4e05fa
commit d4558b5fe5
26 changed files with 44 additions and 42 deletions
+2 -2
View File
@@ -27,14 +27,14 @@ namespace {
const rapidjson::Value &unparsedEmoji,
QString shortCode = QString())
{
std::array<uint32_t, 9> unicodeBytes;
std::array<uint32_t, 9> unicodeBytes{};
struct {
bool apple;
bool google;
bool twitter;
bool facebook;
} capabilities;
} capabilities{};
if (!shortCode.isEmpty())
{
+1 -1
View File
@@ -41,7 +41,7 @@ struct CreateEmoteResult {
Emote emote;
EmoteId id;
EmoteName name;
bool hasImages;
bool hasImages{};
};
EmotePtr cachedOrMake(Emote &&emote, const EmoteId &id)
+2 -2
View File
@@ -328,7 +328,7 @@ private:
const QString subscriptionUrl_;
const QString channelUrl_;
const QString popoutPlayerUrl_;
int chatterCount_;
int chatterCount_{};
UniqueAccess<StreamStatus> streamStatus_;
UniqueAccess<RoomModes> roomModes_;
std::atomic_flag loadingRecentMessages_ = ATOMIC_FLAG_INIT;
@@ -376,7 +376,7 @@ private:
* The index of the twitch connection in
* 7TV's user representation.
*/
size_t seventvUserTwitchConnectionIndex_;
size_t seventvUserTwitchConnectionIndex_{};
/**
* The next moment in time to signal activity in this channel to 7TV.
@@ -127,7 +127,7 @@ private:
QString roomID_;
bool hasBits_ = false;
QString bits;
int bitsLeft;
int bitsLeft{};
bool bitsStacked = false;
bool historicalMessage_ = false;
std::shared_ptr<MessageThread> thread_;
+1 -1
View File
@@ -355,7 +355,7 @@ struct HelixVip {
struct HelixChatters {
std::unordered_set<QString> chatters;
int total;
int total{};
QString cursor;
HelixChatters() = default;