mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-06-21 16:44:50 +00:00
Fix some issues found by static analysis (clang-analyzer and cppcheck).
This was SVN commit r16801.
This commit is contained in:
@@ -333,8 +333,6 @@ void* ScriptRuntime::jshook_function(JSContext* cx, JSAbstractFramePtr fp, bool
|
||||
|
||||
void ScriptRuntime::PrepareContextsForIncrementalGC()
|
||||
{
|
||||
for (std::list<JSContext*>::iterator itr = m_Contexts.begin(); itr != m_Contexts.end(); itr++)
|
||||
{
|
||||
JS::PrepareZoneForGC(js::GetCompartmentZone(js::GetContextCompartment(*itr)));
|
||||
}
|
||||
for (JSContext* const& ctx : m_Contexts)
|
||||
JS::PrepareZoneForGC(js::GetCompartmentZone(js::GetContextCompartment(ctx)));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user