Skip to content

Commit

Permalink
Remove foreach, Use range-based loop
Browse files Browse the repository at this point in the history
  • Loading branch information
rhaschke committed Sep 23, 2022
1 parent eaa71d9 commit 3cc8336
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions rviz_tactile_plugins/src/tactile_state_display.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@
#include <rviz/properties/enum_property.h>
#include <rviz/validate_floats.h>

#include <boost/foreach.hpp>
static const QString ROBOT_DESC = "robot description";

using namespace urdf::tactile;
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 3cc8336

Please sign in to comment.