Skip to content

Commit

Permalink
Keep ac static
Browse files Browse the repository at this point in the history
  • Loading branch information
sjahr committed Oct 25, 2023
1 parent 8f1caae commit ccce6dd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions moveit_core/planning_interface/src/planning_interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ struct ActiveContexts
std::set<PlanningContext*> contexts_;
};

ActiveContexts& getActiveContexts()
static ActiveContexts& getActiveContexts()
{
ActiveContexts ac;
return ac;
static ActiveContexts s_ac;
return s_ac;
}
} // namespace

Expand Down

0 comments on commit ccce6dd

Please sign in to comment.