Skip to content

Commit c40efa2

Browse files
authored
fix(tier4_state_rviz_plugin): fix unmatchedSuppression (#8921)
fix:unmatchedSuppression Signed-off-by: kobayu858 <yutaro.kobayashi@tier4.jp>
1 parent 81e7aba commit c40efa2

File tree

4 files changed

+0
-7
lines changed

4 files changed

+0
-7
lines changed

common/tier4_state_rviz_plugin/src/custom_button.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ QSize CustomElevatedButton::minimumSizeHint() const
6363
return sizeHint();
6464
}
6565

66-
// cppcheck-suppress unusedFunction
6766
void CustomElevatedButton::updateStyle(
6867
const QString & text, const QColor & bgColor, const QColor & textColor, const QColor & hoverColor,
6968
const QColor & pressedColor, const QColor & checkedColor, const QColor & disabledBgColor,

common/tier4_state_rviz_plugin/src/custom_container.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ CustomContainer::CustomContainer(QWidget * parent) : QFrame(parent), cornerRadiu
2626
setLayout(layout);
2727
}
2828

29-
// cppcheck-suppress unusedFunction
3029
QGridLayout * CustomContainer::getLayout() const
3130
{
3231
return layout; // Provide access to the layout

common/tier4_state_rviz_plugin/src/custom_segmented_button.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ CustomSegmentedButtonItem * CustomSegmentedButton::addButton(const QString & tex
4040
return button;
4141
}
4242

43-
// cppcheck-suppress unusedFunction
4443
QButtonGroup * CustomSegmentedButton::getButtonGroup() const
4544
{
4645
return buttonGroup;

common/tier4_state_rviz_plugin/src/custom_segmented_button_item.cpp

-4
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,12 @@ CustomSegmentedButtonItem::CustomSegmentedButtonItem(const QString & text, QWidg
4444
// setFixedSize(width, height);
4545
// }
4646

47-
// cppcheck-suppress unusedFunction
4847
void CustomSegmentedButtonItem::setHovered(bool hovered)
4948
{
5049
isHovered = hovered;
5150
updateCheckableState();
5251
}
5352

54-
// cppcheck-suppress unusedFunction
5553
void CustomSegmentedButtonItem::setCheckableButton(bool checkable)
5654
{
5755
setCheckable(checkable);
@@ -66,14 +64,12 @@ void CustomSegmentedButtonItem::updateCheckableState()
6664
update();
6765
}
6866

69-
// cppcheck-suppress unusedFunction
7067
void CustomSegmentedButtonItem::setDisabledButton(bool disabled)
7168
{
7269
isDisabled = disabled;
7370
updateCheckableState();
7471
}
7572

76-
// cppcheck-suppress unusedFunction
7773
void CustomSegmentedButtonItem::setActivated(bool activated)
7874
{
7975
isActivated = activated;

0 commit comments

Comments
 (0)