From 6cea16f2c9ec0666708e924fa93c664ddb000b5c Mon Sep 17 00:00:00 2001 From: Trevor Norris Date: Fri, 1 Nov 2013 14:45:46 -0700 Subject: [PATCH] async-wrap: make typenames consistent --- src/async-wrap-inl.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/async-wrap-inl.h b/src/async-wrap-inl.h index 1de2958..78e297a 100644 --- a/src/async-wrap-inl.h +++ b/src/async-wrap-inl.h @@ -58,14 +58,14 @@ inline AsyncWrap::~AsyncWrap() { } -template +template inline void AsyncWrap::AddMethods(v8::Handle t) { NODE_SET_PROTOTYPE_METHOD(t, "addAsyncListener", - AddAsyncListener); + AddAsyncListener); NODE_SET_PROTOTYPE_METHOD(t, "removeAsyncListener", - RemoveAsyncListener); + RemoveAsyncListener); } @@ -188,7 +188,7 @@ inline v8::Handle AsyncWrap::MakeCallback( } -template +template inline void AsyncWrap::AddAsyncListener( const v8::FunctionCallbackInfo& args) { v8::HandleScope handle_scope(args.GetIsolate()); @@ -201,14 +201,14 @@ inline void AsyncWrap::AddAsyncListener( env->async_listener_push_function()->Call(handle, 1, &listener); - TYPE* wrap = static_cast( + Type* wrap = static_cast( handle->GetAlignedPointerFromInternalField(0)); assert(wrap != NULL); wrap->set_flag(ASYNC_LISTENERS); } -template +template inline void AsyncWrap::RemoveAsyncListener( const v8::FunctionCallbackInfo& args) { v8::HandleScope handle_scope(args.GetIsolate()); @@ -223,7 +223,7 @@ inline void AsyncWrap::RemoveAsyncListener( env->async_listener_strip_function()->Call(handle, 1, &listener); if (ret->IsFalse()) { - TYPE* wrap = static_cast( + Type* wrap = static_cast( handle->GetAlignedPointerFromInternalField(0)); assert(wrap != NULL); wrap->remove_flag(ASYNC_LISTENERS); -- 2.7.4