Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorssuda <sambasivarao@gmail.com>2012-03-21 20:47:16 +0400
committerBen Noordhuis <info@bnoordhuis.nl>2012-03-23 04:02:59 +0400
commit249c3c165ab3b93e1bd0a05668d81b289b8d4ccf (patch)
tree95eaec927de099434f3f47ae7710c6c715bcc952 /src/pipe_wrap.cc
parente1199fa335e0cdbe11c8d2d7480409ce741d4406 (diff)
Avoiding unnecessary ToString() calls
String::Utf8Value and String::AsciiValue constructors take Handle<Value> So no need to convert to Handle<String>
Diffstat (limited to 'src/pipe_wrap.cc')
-rw-r--r--src/pipe_wrap.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pipe_wrap.cc b/src/pipe_wrap.cc
index d2379a59a79..45902d4a883 100644
--- a/src/pipe_wrap.cc
+++ b/src/pipe_wrap.cc
@@ -144,7 +144,7 @@ Handle<Value> PipeWrap::Bind(const Arguments& args) {
UNWRAP
- String::AsciiValue name(args[0]->ToString());
+ String::AsciiValue name(args[0]);
int r = uv_pipe_bind(&wrap->handle_, *name);
@@ -271,7 +271,7 @@ Handle<Value> PipeWrap::Connect(const Arguments& args) {
UNWRAP
- String::AsciiValue name(args[0]->ToString());
+ String::AsciiValue name(args[0]);
ConnectWrap* req_wrap = new ConnectWrap();