Skip to content

Commit f591582

Browse files
author
Franco Fusco
committed
Removed auto keyword
1 parent 15ba3b2 commit f591582

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

orocos_kdl/src/chain.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
2121

2222
#include "chain.hpp"
23-
// #include <algorithm>
2423

2524
namespace KDL {
2625
using namespace std;

orocos_kdl/src/tree.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ void Tree::deleteSegmentsRecursive(SegmentMap::const_iterator segment, unsigned
178178
if(GetTreeElementSegment(segment->second).getJoint().getType() != Joint::None)
179179
nj++;
180180
// remove the segment from the map
181-
segments.erase(segment);
181+
segments.erase(segment->first);
182182
}
183183

184184
unsigned int Tree::deleteSegmentsFrom(SegmentMap::const_iterator segment) {
@@ -187,8 +187,8 @@ unsigned int Tree::deleteSegmentsFrom(SegmentMap::const_iterator segment) {
187187
return 0;
188188

189189
// remove references to this segment from its parent
190-
auto parent = segments.find(GetTreeElementParent(segment->second)->first);
191-
auto& parent_children = GetTreeElementChildren(parent->second);
190+
SegmentMap::iterator parent = segments.find(GetTreeElementParent(segment->second)->first);
191+
std::vector<SegmentMap::const_iterator>& parent_children = GetTreeElementChildren(parent->second);
192192
parent_children.erase(std::remove(parent_children.begin(), parent_children.end(), segment));
193193

194194
// delete children recursively

0 commit comments

Comments
 (0)