We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c81264 commit ccee397Copy full SHA for ccee397
rclcpp/include/rclcpp/executors/timers_manager.hpp
@@ -198,8 +198,8 @@ class TimersManager
198
bool any_timer_destroyed = false;
199
200
auto it = weak_heap_.begin();
201
- auto end = weak_heap_.end();
202
- while (it != end) {
+
+ while (it != weak_heap_.end()) {
203
if (auto timer_shared_ptr = it->lock()) {
204
// This timer is valid, add it to the vector
205
locked_heap.push_back(std::move(timer_shared_ptr));
0 commit comments