Skip to content

Commit 0e3ec0b

Browse files
rhaschkev4hn
authored andcommitted
fix constness
1 parent 106c138 commit 0e3ec0b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

core/include/moveit/task_constructor/container_p.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ class MergerPrivate : public ParallelContainerBasePrivate
230230
using ChildSolutionList = std::vector<const SubTrajectory*>;
231231
using ChildSolutionMap = std::map<const Stage*, ChildSolutionList>;
232232
// map from external source state (iterator) to all corresponding children's solutions
233-
std::map<InterfaceState*, ChildSolutionMap> source_state_to_solutions_;
233+
std::map<const InterfaceState*, ChildSolutionMap> source_state_to_solutions_;
234234

235235
public:
236236
using Spawner = std::function<void(SubTrajectory&&)>;

core/src/container.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -883,7 +883,7 @@ void MergerPrivate::onNewPropagateSolution(const SolutionBase& s) {
883883
auto source_it = internalToExternalMap().find(source_state);
884884
// internal->external mapping for source state should have been created
885885
assert(source_it != internalToExternalMap().end());
886-
InterfaceState* external_source_state = &*source_it->second;
886+
const InterfaceState* external_source_state = &*source_it->second;
887887

888888
// retrieve (or create if necessary) the ChildSolutionMap for the given external source state
889889
ChildSolutionMap& all_solutions =

0 commit comments

Comments
 (0)