Replaced BOOST_FOREACH with c++11 ranged for loops

This commit is contained in:
mensinda
2016-04-05 22:53:54 +02:00
parent 4836a2993e
commit 18843fe5e1
33 changed files with 209 additions and 236 deletions

View File

@@ -42,7 +42,6 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#define INCLUDED_AI_STEPFILE_H
#include <boost/noncopyable.hpp>
#include <boost/foreach.hpp>
#include <bitset>
#include <memory>
#include <typeinfo>
@@ -868,7 +867,7 @@ namespace STEP {
public:
~DB() {
BOOST_FOREACH(ObjectMap::value_type& o, objects) {
for(ObjectMap::value_type& o : objects) {
delete o.second;
}
}
@@ -950,7 +949,7 @@ namespace STEP {
// evaluate *all* entities in the file. this is a power test for the loader
void EvaluateAll() {
BOOST_FOREACH(ObjectMap::value_type& e,objects) {
for(ObjectMap::value_type& e :objects) {
**e.second;
}
ai_assert(evaluated_count == objects.size());