summaryrefslogtreecommitdiff
path: root/src/pipe_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/pipe_wrap.cc
parentf2e3be53bc33fc9269c248cec4ac26d6ec9054f7 (diff)
downloadandroid-node-v8-613d76ef6a00ec091367de1e63bc51e3ab672cbd.tar.gz
android-node-v8-613d76ef6a00ec091367de1e63bc51e3ab672cbd.tar.bz2
android-node-v8-613d76ef6a00ec091367de1e63bc51e3ab672cbd.zip
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/pipe_wrap.cc')
-rw-r--r--src/pipe_wrap.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/pipe_wrap.cc b/src/pipe_wrap.cc
index 5e8fc5ea9b..08ab7190bd 100644
--- a/src/pipe_wrap.cc
+++ b/src/pipe_wrap.cc
@@ -139,7 +139,7 @@ PipeWrap::PipeWrap(Environment* env, Handle<Object> object, bool ipc)
void PipeWrap::Bind(const FunctionCallbackInfo<Value>& args) {
HandleScope scope(node_isolate);
- PipeWrap* wrap = UnwrapObject<PipeWrap>(args.This());
+ PipeWrap* wrap = Unwrap<PipeWrap>(args.This());
String::AsciiValue name(args[0]);
int err = uv_pipe_bind(&wrap->handle_, *name);
@@ -151,7 +151,7 @@ void PipeWrap::Bind(const FunctionCallbackInfo<Value>& args) {
void PipeWrap::SetPendingInstances(const FunctionCallbackInfo<Value>& args) {
HandleScope scope(node_isolate);
- PipeWrap* wrap = UnwrapObject<PipeWrap>(args.This());
+ PipeWrap* wrap = Unwrap<PipeWrap>(args.This());
int instances = args[0]->Int32Value();
@@ -163,7 +163,7 @@ void PipeWrap::SetPendingInstances(const FunctionCallbackInfo<Value>& args) {
void PipeWrap::Listen(const FunctionCallbackInfo<Value>& args) {
HandleScope scope(node_isolate);
- PipeWrap* wrap = UnwrapObject<PipeWrap>(args.This());
+ PipeWrap* wrap = Unwrap<PipeWrap>(args.This());
int backlog = args[0]->Int32Value();
int err = uv_listen(reinterpret_cast<uv_stream_t*>(&wrap->handle_),
@@ -205,7 +205,7 @@ void PipeWrap::OnConnection(uv_stream_t* handle, int status) {
env->pipe_constructor_template()->GetFunction()->NewInstance();
// Unwrap the client javascript object.
- PipeWrap* wrap = UnwrapObject<PipeWrap>(client_obj);
+ PipeWrap* wrap = Unwrap<PipeWrap>(client_obj);
uv_stream_t* client_handle = reinterpret_cast<uv_stream_t*>(&wrap->handle_);
if (uv_accept(handle, client_handle))
return;
@@ -264,7 +264,7 @@ void PipeWrap::AfterConnect(uv_connect_t* req, int status) {
void PipeWrap::Open(const FunctionCallbackInfo<Value>& args) {
HandleScope scope(node_isolate);
- PipeWrap* wrap = UnwrapObject<PipeWrap>(args.This());
+ PipeWrap* wrap = Unwrap<PipeWrap>(args.This());
int fd = args[0]->Int32Value();
@@ -279,7 +279,7 @@ void PipeWrap::Connect(const FunctionCallbackInfo<Value>& args) {
Environment* env = Environment::GetCurrent(args.GetIsolate());
HandleScope scope(args.GetIsolate());
- PipeWrap* wrap = UnwrapObject<PipeWrap>(args.This());
+ PipeWrap* wrap = Unwrap<PipeWrap>(args.This());
assert(args[0]->IsObject());
assert(args[1]->IsString());