gbranden pushed a commit to branch master
in repository groff.

commit 38db1fec4f9373e722bd2aac15f9e03d7b7567b8
Author: G. Branden Robinson <[email protected]>
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 (;;) {

_______________________________________________
Groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit

Reply via email to