Fix all warnings from the cppcoreguidelines-pro-type-member-init clang-tidy check (#4426)
This commit is contained in:
@@ -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())
|
||||
{
|
||||
|
||||
@@ -41,7 +41,7 @@ struct CreateEmoteResult {
|
||||
Emote emote;
|
||||
EmoteId id;
|
||||
EmoteName name;
|
||||
bool hasImages;
|
||||
bool hasImages{};
|
||||
};
|
||||
|
||||
EmotePtr cachedOrMake(Emote &&emote, const EmoteId &id)
|
||||
|
||||
@@ -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_;
|
||||
|
||||
@@ -355,7 +355,7 @@ struct HelixVip {
|
||||
|
||||
struct HelixChatters {
|
||||
std::unordered_set<QString> chatters;
|
||||
int total;
|
||||
int total{};
|
||||
QString cursor;
|
||||
|
||||
HelixChatters() = default;
|
||||
|
||||
Reference in New Issue
Block a user