summaryrefslogtreecommitdiff
path: root/src/node_stat_watcher.cc
diff options
context:
space:
mode:
authorssuda <sambasivarao@gmail.com>2012-03-21 22:17:16 +0530
committerBen Noordhuis <info@bnoordhuis.nl>2012-03-23 01:02:59 +0100
commit249c3c165ab3b93e1bd0a05668d81b289b8d4ccf (patch)
tree95eaec927de099434f3f47ae7710c6c715bcc952 /src/node_stat_watcher.cc
parente1199fa335e0cdbe11c8d2d7480409ce741d4406 (diff)
downloadandroid-node-v8-249c3c165ab3b93e1bd0a05668d81b289b8d4ccf.tar.gz
android-node-v8-249c3c165ab3b93e1bd0a05668d81b289b8d4ccf.tar.bz2
android-node-v8-249c3c165ab3b93e1bd0a05668d81b289b8d4ccf.zip
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/node_stat_watcher.cc')
-rw-r--r--src/node_stat_watcher.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node_stat_watcher.cc b/src/node_stat_watcher.cc
index 5b06966b96..fab7c3ee5c 100644
--- a/src/node_stat_watcher.cc
+++ b/src/node_stat_watcher.cc
@@ -78,7 +78,7 @@ Handle<Value> StatWatcher::Start(const Arguments& args) {
}
StatWatcher *handler = ObjectWrap::Unwrap<StatWatcher>(args.Holder());
- String::Utf8Value path(args[0]->ToString());
+ String::Utf8Value path(args[0]);
assert(handler->path_ == NULL);
handler->path_ = strdup(*path);