refactor: fix clang-tidy auto*, const&, and curly braces (#5083)
This commit is contained in:
@@ -123,7 +123,9 @@ struct Deserialize<chatterino::HighlightBadge> {
|
||||
|
||||
auto _color = QColor(encodedColor);
|
||||
if (!_color.isValid())
|
||||
{
|
||||
_color = chatterino::HighlightBadge::FALLBACK_HIGHLIGHT_COLOR;
|
||||
}
|
||||
|
||||
return chatterino::HighlightBadge(_name, _displayName, _showInMentions,
|
||||
_hasAlert, _hasSound, _soundUrl,
|
||||
|
||||
@@ -164,7 +164,9 @@ struct Deserialize<chatterino::HighlightPhrase> {
|
||||
|
||||
auto _color = QColor(encodedColor);
|
||||
if (!_color.isValid())
|
||||
{
|
||||
_color = chatterino::HighlightPhrase::FALLBACK_HIGHLIGHT_COLOR;
|
||||
}
|
||||
|
||||
return chatterino::HighlightPhrase(_pattern, _showInMentions, _hasAlert,
|
||||
_hasSound, _isRegex,
|
||||
|
||||
Reference in New Issue
Block a user