Replaced BOOST_FOREACH with c++11 ranged for loops
This commit is contained in:
@@ -431,7 +431,7 @@ aiNode* XGLImporter::ReadObject(TempScope& scope, bool skipFirst, const char* cl
|
||||
}
|
||||
|
||||
} catch(...) {
|
||||
BOOST_FOREACH(aiNode* ch, children) {
|
||||
for(aiNode* ch : children) {
|
||||
delete ch;
|
||||
}
|
||||
throw;
|
||||
@@ -691,7 +691,7 @@ bool XGLImporter::ReadMesh(TempScope& scope)
|
||||
|
||||
// finally extract output meshes and add them to the scope
|
||||
typedef std::pair<unsigned int, TempMaterialMesh> pairt;
|
||||
BOOST_FOREACH(const pairt& p, bymat) {
|
||||
for(const pairt& p : bymat) {
|
||||
aiMesh* const m = ToOutputMesh(p.second);
|
||||
scope.meshes_linear.push_back(m);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user