gbranden pushed a commit to branch master
in repository groff.
commit 3f1536e9f0dba3191cd0e10c1bc51ac37f2a8bdb
Author: G. Branden Robinson <[email protected]>
AuthorDate: Sun Nov 22 18:24:06 2026 -0600
src/roff/troff/node.cpp: Annotate.
Annotate null pointer literal with `nullptr` comment to ease any future
transition to C++11, which defines it as a keyword.
---
src/roff/troff/node.cpp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/roff/troff/node.cpp b/src/roff/troff/node.cpp
index 57038ac33..74ec4b592 100644
--- a/src/roff/troff/node.cpp
+++ b/src/roff/troff/node.cpp
@@ -5589,7 +5589,8 @@ static node *make_user_defined_glyph_node(charinfo *s,
environment *env)
char_slant, fontno);
if (env->is_composite())
tf = tf->get_plain();
- return new user_defined_glyph_node(n, s, tf, 0, 0, 0);
+ return new user_defined_glyph_node(n, s, tf, 0 /* nullptr */, 0,
+ 0 /* nullptr */);
}
static node *make_glyph_node(charinfo *s, environment *env,
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit