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#8921)

fix:unmatchedSuppression

Signed-off-by: kobayu858 <[email protected]>
  • Loading branch information
kobayu858 authored Sep 24, 2024
1 parent 81e7aba commit c40efa2
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 7 deletions.
1 change: 0 additions & 1 deletion common/tier4_state_rviz_plugin/src/custom_button.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ QSize CustomElevatedButton::minimumSizeHint() const
return sizeHint();
}

// cppcheck-suppress unusedFunction
void CustomElevatedButton::updateStyle(
const QString & text, const QColor & bgColor, const QColor & textColor, const QColor & hoverColor,
const QColor & pressedColor, const QColor & checkedColor, const QColor & disabledBgColor,
Expand Down
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 @@ -26,7 +26,6 @@ CustomContainer::CustomContainer(QWidget * parent) : QFrame(parent), cornerRadiu
setLayout(layout);
}

// cppcheck-suppress unusedFunction
QGridLayout * CustomContainer::getLayout() const
{
return layout; // Provide access to the layout
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ CustomSegmentedButtonItem * CustomSegmentedButton::addButton(const QString & tex
return button;
}

// cppcheck-suppress unusedFunction
QButtonGroup * CustomSegmentedButton::getButtonGroup() const
{
return buttonGroup;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,12 @@ CustomSegmentedButtonItem::CustomSegmentedButtonItem(const QString & text, QWidg
// setFixedSize(width, height);
// }

// cppcheck-suppress unusedFunction
void CustomSegmentedButtonItem::setHovered(bool hovered)
{
isHovered = hovered;
updateCheckableState();
}

// cppcheck-suppress unusedFunction
void CustomSegmentedButtonItem::setCheckableButton(bool checkable)
{
setCheckable(checkable);
Expand All @@ -66,14 +64,12 @@ void CustomSegmentedButtonItem::updateCheckableState()
update();
}

// cppcheck-suppress unusedFunction
void CustomSegmentedButtonItem::setDisabledButton(bool disabled)
{
isDisabled = disabled;
updateCheckableState();
}

// cppcheck-suppress unusedFunction
void CustomSegmentedButtonItem::setActivated(bool activated)
{
isActivated = activated;
Expand Down

0 comments on commit c40efa2

Please sign in to comment.