Skip to content

Commit

Permalink
fix(tier4_state_rviz_plugin): fix unmatchedSuppression (autowarefound…
Browse files Browse the repository at this point in the history
…ation#8658)

fix:unmatchedSuppression

Signed-off-by: kobayu858 <[email protected]>
  • Loading branch information
kobayu858 authored Aug 30, 2024
1 parent ee38d95 commit 17ad425
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 10 deletions.
1 change: 0 additions & 1 deletion common/tier4_state_rviz_plugin/src/custom_container.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ QSize CustomContainer::sizeHint() const
return QSize(width, height);
}

// cppcheck-suppress unusedFunction
QSize CustomContainer::minimumSizeHint() const
{
return sizeHint();
Expand Down
2 changes: 0 additions & 2 deletions common/tier4_state_rviz_plugin/src/custom_icon_label.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,11 @@ QSize CustomIconLabel::sizeHint() const
return QSize(size, size);
}

// cppcheck-suppress unusedFunction
QSize CustomIconLabel::minimumSizeHint() const
{
return sizeHint();
}

// cppcheck-suppress unusedFunction
void CustomIconLabel::paintEvent(QPaintEvent *)
{
QPainter painter(this);
Expand Down
2 changes: 0 additions & 2 deletions common/tier4_state_rviz_plugin/src/custom_label.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,11 @@ QSize CustomLabel::sizeHint() const
return QSize(width, height);
}

// cppcheck-suppress unusedFunction
QSize CustomLabel::minimumSizeHint() const
{
return sizeHint();
}

// cppcheck-suppress unusedFunction
void CustomLabel::paintEvent(QPaintEvent *)
{
QPainter painter(this);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,11 @@ QSize CustomSegmentedButton::sizeHint() const
// layout->itemAt(0)->widget()->height() + 10);
}

// cppcheck-suppress unusedFunction
QSize CustomSegmentedButton::minimumSizeHint() const
{
return sizeHint();
}

// cppcheck-suppress unusedFunction
void CustomSegmentedButton::paintEvent(QPaintEvent *)
{
QPainter painter(this);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ void CustomSegmentedButtonItem::setActivated(bool activated)
update();
}

// cppcheck-suppress unusedFunction
void CustomSegmentedButtonItem::paintEvent(QPaintEvent *)
{
QPainter painter(this);
Expand Down
1 change: 0 additions & 1 deletion common/tier4_state_rviz_plugin/src/custom_slider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ CustomSlider::CustomSlider(Qt::Orientation orientation, QWidget * parent)
setMinimumHeight(40); // Ensure there's enough space for the custom track
}

// cppcheck-suppress unusedFunction
void CustomSlider::paintEvent(QPaintEvent *)
{
QPainter painter(this);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ QSize CustomToggleSwitch::sizeHint() const
return QSize(50, 30); // Preferred size of the toggle switch
}

// cppcheck-suppress unusedFunction
void CustomToggleSwitch::paintEvent(QPaintEvent *)
{
QPainter p(this);
Expand Down

0 comments on commit 17ad425

Please sign in to comment.