From 440b238157a8742b58b940187beee5cfcdb76488 Mon Sep 17 00:00:00 2001 From: Ales Pergl Date: Fri, 30 Jun 2017 11:40:35 +0200 Subject: [PATCH] Fixed build issues in debug mode --- atom/common/native_mate_converters/callback.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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());