aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorpracticalswift <practicalswift@users.noreply.github.com>2017-08-16 17:26:07 +0200
committerpracticalswift <practicalswift@users.noreply.github.com>2017-08-18 09:51:00 +0200
commitbea8e9e66ea98a957b8318cd49d91b598f38cbd3 (patch)
treec3890f824307145dea842650f41824da4ffe1b3e /doc
parentdbf6bd6ea05f7d4836083747c6357c6fee907ab8 (diff)
Document the preference of nullptr over NULL or (void*)0
Diffstat (limited to 'doc')
-rw-r--r--doc/developer-notes.md3
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/developer-notes.md b/doc/developer-notes.md
index 77260bbdfd..9b85600ccc 100644
--- a/doc/developer-notes.md
+++ b/doc/developer-notes.md
@@ -37,6 +37,7 @@ code.
- **Miscellaneous**
- `++i` is preferred over `i++`.
+ - `nullptr` is preferred over `NULL` or `(void*)0`.
- `static_assert` is preferred over `assert` where possible. Generally; compile-time checking is preferred over run-time checking.
Block style example:
@@ -276,7 +277,7 @@ Wallet
- *Rationale*: In RPC code that conditionally uses the wallet (such as
`validateaddress`) it is easy to forget that global pointer `pwalletMain`
- can be NULL. See `test/functional/disablewallet.py` for functional tests
+ can be nullptr. See `test/functional/disablewallet.py` for functional tests
exercising the API with `-disablewallet`
- Include `db_cxx.h` (BerkeleyDB header) only when `ENABLE_WALLET` is set