diff --git a/atom/common/native_mate_converters/callback.h b/atom/common/native_mate_converters/callback.h index 28bff3c82ad3..8073d00779ea 100644 --- a/atom/common/native_mate_converters/callback.h +++ b/atom/common/native_mate_converters/callback.h @@ -55,7 +55,7 @@ struct V8FunctionInvoker(ArgTypes...)> { v8::Local holder = function.NewHandle(isolate); v8::Local context = holder->CreationContext(); v8::Context::Scope context_scope(context); - std::vector> args = { ConvertToV8(isolate, raw)... }; + std::vector> args { ConvertToV8(isolate, raw)... }; v8::Local ret(holder->Call(holder, args.size(), &args.front())); return handle_scope.Escape(ret); } @@ -75,7 +75,7 @@ struct V8FunctionInvoker { v8::Local holder = function.NewHandle(isolate); v8::Local context = holder->CreationContext(); v8::Context::Scope context_scope(context); - std::vector> args = { ConvertToV8(isolate, raw)... }; + std::vector> args { ConvertToV8(isolate, raw)... }; holder->Call(holder, args.size(), &args.front()); } }; @@ -95,7 +95,7 @@ struct V8FunctionInvoker { v8::Local holder = function.NewHandle(isolate); v8::Local context = holder->CreationContext(); v8::Context::Scope context_scope(context); - std::vector> args = { ConvertToV8(isolate, raw)... }; + std::vector> args { ConvertToV8(isolate, raw)... }; v8::Local result; auto maybe_result = holder->Call(context, holder, args.size(), &args.front());