summaryrefslogtreecommitdiff
path: root/src/stream_wrap.h
diff options
context:
space:
mode:
authorTrevor Norris <trev.norris@gmail.com>2014-11-14 15:47:34 -0800
committerBert Belder <bertbelder@gmail.com>2014-12-09 17:57:16 +0100
commitf39b48c26d669765154e42ebd02c28585551cd0e (patch)
tree3bec33760222d52bb97b665f3538540f0bf3ae8d /src/stream_wrap.h
parent819690fd983d61f90cdf05714a30782fe3b553cd (diff)
downloadnode-new-f39b48c26d669765154e42ebd02c28585551cd0e.tar.gz
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<T>(handle). PR-URL: https://github.com/joyent/node/pull/8110 Signed-off-by: Trevor Norris <trev.norris@gmail.com> Reviewed-by: Fedor Indutny <fedor@indutny.com> Reviewed-by: Alexis Campailla <alexis@janeasystems.com> Reviewed-by: Julien Gilli <julien.gilli@joyent.com>
Diffstat (limited to 'src/stream_wrap.h')
-rw-r--r--src/stream_wrap.h4
1 files changed, 2 insertions, 2 deletions
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<uv_shutdown_t> {
public:
ShutdownWrap(Environment* env, v8::Local<v8::Object> req_wrap_obj)
: ReqWrap(env, req_wrap_obj, AsyncWrap::PROVIDER_SHUTDOWNWRAP) {
- Wrap<ShutdownWrap>(req_wrap_obj, this);
+ Wrap(req_wrap_obj, this);
}
static void NewShutdownWrap(const v8::FunctionCallbackInfo<v8::Value>& args) {
@@ -52,7 +52,7 @@ class WriteWrap: public ReqWrap<uv_write_t> {
WriteWrap(Environment* env, v8::Local<v8::Object> obj, StreamWrap* wrap)
: ReqWrap(env, obj, AsyncWrap::PROVIDER_WRITEWRAP),
wrap_(wrap) {
- Wrap<WriteWrap>(obj, this);
+ Wrap(obj, this);
}
void* operator new(size_t size, char* storage) { return storage; }