gbranden pushed a commit to branch master
in repository groff.
commit 3db9143786d21be82ef44a1521a3cb343b13a6d8
Author: G. Branden Robinson <[email protected]>
AuthorDate: Thu Jun 5 05:04:51 2025 -0500
[grohtml]: Spell null pointer as `0`, not `NULL`.
* src/devices/grohtml/post-html.cpp (main): Spell null pointer constant
the idiomatic C++98 way (`0`) instead of as `NULL`.
---
ChangeLog | 5 +++++
src/devices/grohtml/post-html.cpp | 5 +++--
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 6433806d9..d0d0cf218 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2025-06-05 G. Branden Robinson <[email protected]>
+
+ * src/devices/grohtml/post-html.cpp (main): Spell null pointer
+ constant the idiomatic C++98 way (`0`) instead of as `NULL`.
+
2025-06-05 G. Branden Robinson <[email protected]>
* src/devices/grohtml/post-html.cpp
diff --git a/src/devices/grohtml/post-html.cpp
b/src/devices/grohtml/post-html.cpp
index 3e5308d39..cef6dac32 100644
--- a/src/devices/grohtml/post-html.cpp
+++ b/src/devices/grohtml/post-html.cpp
@@ -5834,10 +5834,11 @@ int main(int argc, char **argv)
static const struct option long_options[] = {
{ "help", no_argument, 0, CHAR_MAX + 1 },
{ "version", no_argument, 0, 'v' },
- { NULL, 0, 0, 0 }
+ { 0 /* nullptr */, 0, 0, 0 }
};
while ((c = getopt_long(argc, argv,
- ":a:bCdD:eF:g:Ghi:I:j:k:lno:prs:S:vVx:y", long_options, NULL))
+ ":a:bCdD:eF:g:Ghi:I:j:k:lno:prs:S:vVx:y", long_options,
+ 0 /* nullptr */))
!= EOF)
switch(c) {
case 'a':
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit