From 2062d5077592c0f8bc364fb458c60ee732f94612 Mon Sep 17 00:00:00 2001 From: King_DuckZ Date: Mon, 30 Jan 2017 13:05:26 +0000 Subject: [PATCH] Use explicit loop --- src/worlditems.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/worlditems.cpp b/src/worlditems.cpp index a4801dd..8bd37e4 100644 --- a/src/worlditems.cpp +++ b/src/worlditems.cpp @@ -19,7 +19,6 @@ #include "worlditems.hpp" #include "moveable.hpp" -#include namespace curry { WorldItems::WorldItems() = default; @@ -33,7 +32,9 @@ namespace curry { } void WorldItems::move_items (float parDeltaT) { - std::for_each(m_moveables.begin(), m_moveables.end(), [=](Moveable* m) {m->do_movement(parDeltaT);}); + for (auto& m : m_moveables) { + m->do_movement(parDeltaT); + } } bool WorldItems::no_items_registered() const {