diff options
Diffstat (limited to 'Source/Scripting/angelscript/add_on/scripthelper/scripthelper.cpp')
-rw-r--r-- | Source/Scripting/angelscript/add_on/scripthelper/scripthelper.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/Scripting/angelscript/add_on/scripthelper/scripthelper.cpp b/Source/Scripting/angelscript/add_on/scripthelper/scripthelper.cpp index 1880b5ed..cee882f7 100644 --- a/Source/Scripting/angelscript/add_on/scripthelper/scripthelper.cpp +++ b/Source/Scripting/angelscript/add_on/scripthelper/scripthelper.cpp @@ -464,10 +464,9 @@ int WriteConfigToStream(asIScriptEngine *engine, ostream &strm) // Write the members of the template types, so they can be fully registered before any other type uses them // TODO: Order the template types based on dependency to avoid failure if one type uses instances of another strm << "\n// Template type members\n"; - for( set<asITypeInfo*>::iterator it = templateTypes.begin(); it != templateTypes.end(); ++it ) + for(auto type : templateTypes) { - asITypeInfo *type = *it; - TypeWriter::Write(engine, strm, type, currNamespace, currAccessMask); + TypeWriter::Write(engine, strm, type, currNamespace, currAccessMask); } // Write the object types members |