Skip to content

Commit

Permalink
clang tidy comments
Browse files Browse the repository at this point in the history
  • Loading branch information
dnsge committed Dec 10, 2023
1 parent 06958c1 commit 1476786
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/widgets/helper/MessageView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
namespace chatterino {

namespace {
static const Selection emptySelection;
}
const Selection EMPTY_SELECTION;
} // namespace

MessageView::MessageView()
: MessageView(nullptr)
Expand Down Expand Up @@ -91,7 +91,7 @@ void MessageView::paintEvent(QPaintEvent * /*event*/)

auto ctx = MessagePaintContext{
.painter = painter,
.selection = emptySelection,
.selection = EMPTY_SELECTION,
.colorProvider = ColorProvider::instance(),
.messageColors = this->messageColors_,
.preferences = this->messagePreferences_,
Expand Down
1 change: 0 additions & 1 deletion src/widgets/helper/MessageView.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ class MessageView : public BaseWidget

MessageElementFlags getFlags() const;

private:
MessagePtr message_;
std::unique_ptr<MessageLayout> messageLayout_;

Expand Down

0 comments on commit 1476786

Please sign in to comment.