Fix signal connection nodiscard warnings (#4818)

This commit is contained in:
pajlada
2023-09-16 13:52:51 +02:00
committed by GitHub
parent 2d5f078306
commit 8fe3af3522
40 changed files with 709 additions and 554 deletions
+3 -1
View File
@@ -227,7 +227,9 @@ void ChannelView::initializeLayout()
void ChannelView::initializeScrollbar()
{
this->scrollBar_->getCurrentValueChanged().connect([this] {
// We can safely ignore the scroll bar's signal connection since the scroll bar will
// always be destroyed before the ChannelView
std::ignore = this->scrollBar_->getCurrentValueChanged().connect([this] {
if (this->isVisible())
{
this->performLayout(true);