From 07c130275e082b5b9f406a58588218bda6ca71e3 Mon Sep 17 00:00:00 2001 From: taisa1 <38522559+taisa1@users.noreply.github.com> Date: Wed, 14 Aug 2024 14:13:01 +0900 Subject: [PATCH] fix(tier4_system_rviz_plugin): fix cppcheck warning of virtualCallInConstructor (#8378) fix: deal with virtualCallInConstructor warning Signed-off-by: taisa1 Co-authored-by: kminoda <44218668+kminoda@users.noreply.github.com> --- common/tier4_system_rviz_plugin/src/jsk_overlay_utils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/tier4_system_rviz_plugin/src/jsk_overlay_utils.cpp b/common/tier4_system_rviz_plugin/src/jsk_overlay_utils.cpp index 36c5d1ce82693..13eef26598020 100644 --- a/common/tier4_system_rviz_plugin/src/jsk_overlay_utils.cpp +++ b/common/tier4_system_rviz_plugin/src/jsk_overlay_utils.cpp @@ -113,7 +113,7 @@ OverlayObject::OverlayObject(const std::string & name) : name_(name) OverlayObject::~OverlayObject() { - hide(); + OverlayObject::hide(); panel_material_->unload(); Ogre::MaterialManager::getSingleton().remove(panel_material_->getName()); // Ogre::OverlayManager* mOverlayMgr = Ogre::OverlayManager::getSingletonPtr();