aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorAndre Hartmann <aha_1980@gmx.de>2018-07-24 14:17:40 +0200
committerAndré Hartmann <aha_1980@gmx.de>2018-07-26 10:11:03 +0000
commit8e8598f2a34766880506f3cc4a3e4fb325eb29bb (patch)
tree864b549c9fec7c7e383e91dd6e7f16023e9c591b /doc
parentcc25aa4cafbbb04cc652c79763c09ab7f584a4d5 (diff)
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>
Diffstat (limited to 'doc')
-rw-r--r--doc/api/coding-style.qdoc7
1 files changed, 3 insertions, 4 deletions
diff --git a/doc/api/coding-style.qdoc b/doc/api/coding-style.qdoc
index 00143bcbb9..3275dca8d4 100644
--- a/doc/api/coding-style.qdoc
+++ b/doc/api/coding-style.qdoc
@@ -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