... | ... | @@ -96,6 +96,9 @@ Many of the rules of the [FreeBS kernel style](https://www.freebsd.org/cgi/man.c |
|
|
* Don't use `0` to initialise null pointers.
|
|
|
* Don't use `0` to compare pointers to null value.
|
|
|
* Don't use implicit conversion to `bool` when checking for null pointers (i.e. don't use `if (ptr) ...` nor `if (!ptr) ...`).
|
|
|
* Use `Q_NULLPTR` to initialise pointers and test for null value.
|
|
|
* The value `Q_NULLPTR` is preferred when checking pointers to Qt objects, values and custom defined C++ objects.
|
|
|
* Use `NULL` when dealing with pointers onto structures and other values that originate from C code.
|
|
|
|
|
|
## Doxygen
|
|
|
|
... | ... | |