From dde4662360beaeac3e4650761962cb7bdcc7e4b4 Mon Sep 17 00:00:00 2001 From: Robert Haschke Date: Fri, 23 Sep 2022 09:59:47 +0200 Subject: [PATCH] Remove foreach, Use range-based loop --- rviz_tactile_plugins/src/tactile_state_display.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/rviz_tactile_plugins/src/tactile_state_display.cpp b/rviz_tactile_plugins/src/tactile_state_display.cpp index dff738d..251adba 100644 --- a/rviz_tactile_plugins/src/tactile_state_display.cpp +++ b/rviz_tactile_plugins/src/tactile_state_display.cpp @@ -48,7 +48,6 @@ #include #include -#include static const QString ROBOT_DESC = "robot description"; using namespace urdf::tactile; @@ -192,7 +191,7 @@ GroupProperty *TactileStateDisplay::getGroupProperty(const QString &path, GroupP { assert(parent); QStringList names = path.split("/", QString::SkipEmptyParts); - Q_FOREACH (const QString &name, names) { + for (const QString &name : names) { GroupProperty *child = nullptr; for (int i = 0, end = parent->numChildren(); i < end && !child; ++i) { rviz::Property *prop = parent->childAtUnchecked(i);