chore: change some for loops to range-based (#26182)
This commit is contained in:
parent
d8167ce138
commit
422190e1ff
5 changed files with 11 additions and 16 deletions
|
@ -109,10 +109,7 @@ void ElectronBindings::ActivateUVLoop(v8::Isolate* isolate) {
|
|||
// static
|
||||
void ElectronBindings::OnCallNextTick(uv_async_t* handle) {
|
||||
auto* self = static_cast<ElectronBindings*>(handle->data);
|
||||
for (std::list<node::Environment*>::const_iterator it =
|
||||
self->pending_next_ticks_.begin();
|
||||
it != self->pending_next_ticks_.end(); ++it) {
|
||||
node::Environment* env = *it;
|
||||
for (auto* env : self->pending_next_ticks_) {
|
||||
gin_helper::Locker locker(env->isolate());
|
||||
v8::Context::Scope context_scope(env->context());
|
||||
v8::HandleScope handle_scope(env->isolate());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue