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
+3 -3
View File
@@ -256,8 +256,8 @@ private:
void showReplyThreadPopup(const MessagePtr &message);
bool canReplyToMessages() const;
QTimer *layoutCooldown_;
bool layoutQueued_;
QTimer *layoutCooldown_{};
bool layoutQueued_{};
QTimer updateTimer_;
bool updateQueued_ = false;
@@ -286,7 +286,7 @@ private:
Split *split_ = nullptr;
Scrollbar *scrollBar_;
EffectLabel *goToBottom_;
EffectLabel *goToBottom_{};
bool showScrollBar_ = false;
FilterSetPtr channelFilters_;
+1 -1
View File
@@ -24,7 +24,7 @@ public:
void updateSize();
QWidget *page;
QWidget *page{};
void setCustomTitle(const QString &title);
void resetCustomTitle();
+3 -3
View File
@@ -35,9 +35,9 @@ public:
private:
std::shared_ptr<QColor> color_;
Style style_;
bool isRedeemedHighlight_;
bool isFirstMessageHighlight_;
bool isElevatedMessageHighlight_;
bool isRedeemedHighlight_{};
bool isFirstMessageHighlight_{};
bool isElevatedMessageHighlight_{};
};
} // namespace chatterino
+1 -1
View File
@@ -27,7 +27,7 @@ protected:
void paintEvent(QPaintEvent *) override;
private:
TitleBarButtonStyle style_;
TitleBarButtonStyle style_{};
};
} // namespace chatterino