diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2014-10-22 05:29:32 +0400 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2014-10-24 00:49:58 +0400 |
commit | 2d82cdf670d88f2f5acc7d1b759cf0cbb3f99962 (patch) | |
tree | a6957d0fa3f6cc76e100ae279e389447b5055029 /src/node_main.cc | |
parent | b2b59febe8bf1d411e7d8faacd23789784aac1f0 (diff) |
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`.
Diffstat (limited to 'src/node_main.cc')
-rw-r--r-- | src/node_main.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/node_main.cc b/src/node_main.cc index 6471551d2c2..28ce29fa97d 100644 --- a/src/node_main.cc +++ b/src/node_main.cc @@ -31,10 +31,10 @@ int wmain(int argc, wchar_t *wargv[]) { 0, wargv[i], -1, - NULL, + nullptr, 0, - NULL, - NULL); + nullptr, + nullptr); if (size == 0) { // This should never happen. fprintf(stderr, "Could not convert arguments to utf8."); @@ -48,8 +48,8 @@ int wmain(int argc, wchar_t *wargv[]) { -1, argv[i], size, - NULL, - NULL); + nullptr, + nullptr); if (result == 0) { // This should never happen. fprintf(stderr, "Could not convert arguments to utf8."); |