summaryrefslogtreecommitdiff
path: root/src/stream_wrap.cc
diff options
context:
space:
mode:
authorTrevor Norris <trev.norris@gmail.com>2013-10-29 13:23:58 -0700
committerTrevor Norris <trev.norris@gmail.com>2013-10-29 15:09:44 -0700
commit613d76ef6a00ec091367de1e63bc51e3ab672cbd (patch)
tree6d5596dfb015ef812081c3974f1b5adf862402c8 /src/stream_wrap.cc
parentf2e3be53bc33fc9269c248cec4ac26d6ec9054f7 (diff)
downloadnode-new-613d76ef6a00ec091367de1e63bc51e3ab672cbd.tar.gz
src: shorten Object{Wrap,Unwrap}
Going back to the original names of Wrap/Unwrap now that most all the class members that duplicate the name and functionality have been removed.
Diffstat (limited to 'src/stream_wrap.cc')
-rw-r--r--src/stream_wrap.cc18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/stream_wrap.cc b/src/stream_wrap.cc
index 85a12f221f..f98fcded0e 100644
--- a/src/stream_wrap.cc
+++ b/src/stream_wrap.cc
@@ -66,7 +66,7 @@ StreamWrap::StreamWrap(Environment* env,
void StreamWrap::GetFD(Local<String>, const PropertyCallbackInfo<Value>& args) {
#if !defined(_WIN32)
HandleScope scope(node_isolate);
- StreamWrap* wrap = UnwrapObject<StreamWrap>(args.This());
+ StreamWrap* wrap = Unwrap<StreamWrap>(args.This());
int fd = -1;
if (wrap != NULL && wrap->stream() != NULL) {
fd = wrap->stream()->io_watcher.fd;
@@ -87,7 +87,7 @@ void StreamWrap::UpdateWriteQueueSize() {
void StreamWrap::ReadStart(const FunctionCallbackInfo<Value>& args) {
HandleScope scope(node_isolate);
- StreamWrap* wrap = UnwrapObject<StreamWrap>(args.This());
+ StreamWrap* wrap = Unwrap<StreamWrap>(args.This());
int err;
if (wrap->is_named_pipe_ipc()) {
@@ -103,7 +103,7 @@ void StreamWrap::ReadStart(const FunctionCallbackInfo<Value>& args) {
void StreamWrap::ReadStop(const FunctionCallbackInfo<Value>& args) {
HandleScope scope(node_isolate);
- StreamWrap* wrap = UnwrapObject<StreamWrap>(args.This());
+ StreamWrap* wrap = Unwrap<StreamWrap>(args.This());
int err = uv_read_stop(wrap->stream());
args.GetReturnValue().Set(err);
@@ -129,7 +129,7 @@ static Local<Object> AcceptHandle(Environment* env, uv_stream_t* pipe) {
if (wrap_obj.IsEmpty())
return Local<Object>();
- WrapType* wrap = UnwrapObject<WrapType>(wrap_obj);
+ WrapType* wrap = Unwrap<WrapType>(wrap_obj);
handle = wrap->UVHandle();
if (uv_accept(pipe, reinterpret_cast<uv_stream_t*>(handle)))
@@ -193,7 +193,7 @@ void StreamWrap::WriteBuffer(const FunctionCallbackInfo<Value>& args) {
Environment* env = Environment::GetCurrent(args.GetIsolate());
HandleScope handle_scope(args.GetIsolate());
- StreamWrap* wrap = UnwrapObject<StreamWrap>(args.This());
+ StreamWrap* wrap = Unwrap<StreamWrap>(args.This());
assert(args[0]->IsObject());
assert(Buffer::HasInstance(args[1]));
@@ -233,7 +233,7 @@ void StreamWrap::WriteStringImpl(const FunctionCallbackInfo<Value>& args) {
HandleScope handle_scope(args.GetIsolate());
int err;
- StreamWrap* wrap = UnwrapObject<StreamWrap>(args.This());
+ StreamWrap* wrap = Unwrap<StreamWrap>(args.This());
assert(args[0]->IsObject());
assert(args[1]->IsString());
@@ -283,7 +283,7 @@ void StreamWrap::WriteStringImpl(const FunctionCallbackInfo<Value>& args) {
if (args[2]->IsObject()) {
Local<Object> send_handle_obj = args[2].As<Object>();
- HandleWrap* wrap = UnwrapObject<HandleWrap>(send_handle_obj);
+ HandleWrap* wrap = Unwrap<HandleWrap>(send_handle_obj);
send_handle = wrap->GetHandle();
// Reference StreamWrap instance to prevent it from being garbage
// collected before `AfterWrite` is called.
@@ -316,7 +316,7 @@ void StreamWrap::Writev(const FunctionCallbackInfo<Value>& args) {
Environment* env = Environment::GetCurrent(args.GetIsolate());
HandleScope handle_scope(args.GetIsolate());
- StreamWrap* wrap = UnwrapObject<StreamWrap>(args.This());
+ StreamWrap* wrap = Unwrap<StreamWrap>(args.This());
assert(args[0]->IsObject());
assert(args[1]->IsArray());
@@ -466,7 +466,7 @@ void StreamWrap::Shutdown(const FunctionCallbackInfo<Value>& args) {
Environment* env = Environment::GetCurrent(args.GetIsolate());
HandleScope handle_scope(args.GetIsolate());
- StreamWrap* wrap = UnwrapObject<StreamWrap>(args.This());
+ StreamWrap* wrap = Unwrap<StreamWrap>(args.This());
assert(args[0]->IsObject());
Local<Object> req_wrap_obj = args[0].As<Object>();