From f39b48c26d669765154e42ebd02c28585551cd0e Mon Sep 17 00:00:00 2001 From: Trevor Norris Date: Fri, 14 Nov 2014 15:47:34 -0800 Subject: src: remove unnecessary template parameter The template class information is received via the type of the first argument. So there is no need to use Wrap(handle). PR-URL: https://github.com/joyent/node/pull/8110 Signed-off-by: Trevor Norris Reviewed-by: Fedor Indutny Reviewed-by: Alexis Campailla Reviewed-by: Julien Gilli --- src/stream_wrap.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/stream_wrap.h') diff --git a/src/stream_wrap.h b/src/stream_wrap.h index 726d7f26b7..93c9f046e0 100644 --- a/src/stream_wrap.h +++ b/src/stream_wrap.h @@ -37,7 +37,7 @@ class ShutdownWrap : public ReqWrap { public: ShutdownWrap(Environment* env, v8::Local req_wrap_obj) : ReqWrap(env, req_wrap_obj, AsyncWrap::PROVIDER_SHUTDOWNWRAP) { - Wrap(req_wrap_obj, this); + Wrap(req_wrap_obj, this); } static void NewShutdownWrap(const v8::FunctionCallbackInfo& args) { @@ -52,7 +52,7 @@ class WriteWrap: public ReqWrap { WriteWrap(Environment* env, v8::Local obj, StreamWrap* wrap) : ReqWrap(env, obj, AsyncWrap::PROVIDER_WRITEWRAP), wrap_(wrap) { - Wrap(obj, this); + Wrap(obj, this); } void* operator new(size_t size, char* storage) { return storage; } -- cgit v1.2.1