[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[groff] 11/63: src/roff/troff/input.cpp: Annotate null pointers.
From: |
G. Branden Robinson |
Subject: |
[groff] 11/63: src/roff/troff/input.cpp: Annotate null pointers. |
Date: |
Mon, 19 Aug 2024 20:06:18 -0400 (EDT) |
gbranden pushed a commit to branch master
in repository groff.
commit 38db1fec4f9373e722bd2aac15f9e03d7b7567b8
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Sat Aug 17 10:19:18 2024 -0500
src/roff/troff/input.cpp: Annotate null pointers.
Annotate null pointers with `nullptr` comment to ease any future
transition to C++11, which defines it as a keyword.
---
src/roff/troff/input.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/roff/troff/input.cpp b/src/roff/troff/input.cpp
index e78fa2aeb..efeb6eb93 100644
--- a/src/roff/troff/input.cpp
+++ b/src/roff/troff/input.cpp
@@ -1896,9 +1896,9 @@ void token::make_newline()
void token::next()
{
- if (nd) {
+ if (nd != 0 /* nullptr */) {
delete nd;
- nd = 0;
+ nd = 0 /* nullptr */;
}
units x;
for (;;) {
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [groff] 11/63: src/roff/troff/input.cpp: Annotate null pointers.,
G. Branden Robinson <=