summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBert Belder <bertbelder@gmail.com>2014-12-09 05:57:17 +0100
committerBert Belder <bertbelder@gmail.com>2014-12-09 17:57:08 +0100
commit9483bfe6e3e84c3eee3056ac3a78d38cbb39d7b6 (patch)
tree14439d1a8d1a196bd82a70e69805adda1d2d9793 /src
parenta38b9178215ae1e408e4218c26733f904d16bc5a (diff)
downloadnode-new-9483bfe6e3e84c3eee3056ac3a78d38cbb39d7b6.tar.gz
node.cc: use nullptr instead of NULL
PR-URL: https://github.com/iojs/io.js/pull/124 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Diffstat (limited to 'src')
-rw-r--r--src/node.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/node.cc b/src/node.cc
index 2cf6e1ddb8..6e3d7ff91c 100644
--- a/src/node.cc
+++ b/src/node.cc
@@ -2071,12 +2071,12 @@ struct node_module* get_builtin_module(const char* name) {
struct node_module* get_linked_module(const char* name) {
struct node_module* mp;
- for (mp = modlist_linked; mp != NULL; mp = mp->nm_link) {
+ for (mp = modlist_linked; mp != nullptr; mp = mp->nm_link) {
if (strcmp(mp->nm_modname, name) == 0)
break;
}
- CHECK(mp == NULL || (mp->nm_flags & NM_F_LINKED) != 0);
+ CHECK(mp == nullptr || (mp->nm_flags & NM_F_LINKED) != 0);
return mp;
}
@@ -2298,7 +2298,7 @@ static void LinkedBinding(const FunctionCallbackInfo<Value>& args) {
node::Utf8Value module_v(module);
node_module* mod = get_linked_module(*module_v);
- if (mod == NULL) {
+ if (mod == nullptr) {
char errmsg[1024];
snprintf(errmsg,
sizeof(errmsg),
@@ -2309,12 +2309,12 @@ static void LinkedBinding(const FunctionCallbackInfo<Value>& args) {
Local<Object> exports = Object::New(env->isolate());
- if (mod->nm_context_register_func != NULL) {
+ if (mod->nm_context_register_func != nullptr) {
mod->nm_context_register_func(exports,
module,
env->context(),
mod->nm_priv);
- } else if (mod->nm_register_func != NULL) {
+ } else if (mod->nm_register_func != nullptr) {
mod->nm_register_func(exports, module, mod->nm_priv);
} else {
return env->ThrowError("Linked module has no declared entry point.");