src: replace NULL with nullptr

Now that we are building with C++11 features enabled, replace use
of NULL with nullptr.

The benefit of using nullptr is that it can never be confused for
an integral type because it does not support implicit conversions
to integral types except boolean - unlike NULL, which is defined
as a literal `0`.
This commit is contained in:
Ben Noordhuis committed 2014-10-23 22:49:58 +02:00
1 parent b2b59febe8
commit 2d82cdf670
48 files changed
+655 -647

No files matched your search

+2 -2
View File
@@ -68,7 +68,7 @@ class StringBytes {
size_t buflen,
v8::Handle<v8::Value> val,
enum encoding enc,
int* chars_written = NULL);
int* chars_written = nullptr);
// Take the bytes in the src, and turn it into a Buffer or String.
static v8::Local<v8::Value> Encode(v8::Isolate* isolate,
@@ -109,7 +109,7 @@ class StringBytes {
size_t buflen,
v8::Handle<v8::Value> val,
enum encoding enc,
int* chars_written = NULL) {
int* chars_written = nullptr) {
v8::Isolate* isolate = v8::Isolate::GetCurrent();
return Write(isolate, buf, buflen, val, enc, chars_written);
})