Coding Style: Update null pointer description to C++11

Task-number: QTCREATORBUG-20852
Change-Id: I150b8e815e137fee333b71d3b05c3a4d2a0038ba
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
Andre Hartmann
2018-07-24 14:17:40 +02:00
committed by André Hartmann
parent cc25aa4caf
commit 8e8598f2a3

View File

@@ -744,11 +744,10 @@
\section3 Null Pointers
Using a plain zero (0) for null pointer constants is always correct and
least effort to type.
Use nullptr for null pointer constants.
\code
void *p = 0;
void *p = nullptr;
-NOT-
@@ -764,7 +763,7 @@
\endcode
\note As an exception, imported third party code as well as code
interfacing the native APIs (src/support/os_*) can use NULL.
interfacing the native APIs (src/support/os_*) can use NULL or 0.
\section2 C++11 and C++14 Features