gbranden pushed a commit to branch master
in repository groff.

commit 37748e6d92edd0310c71416a8ce61db06929c6bb
Author: G. Branden Robinson <[email protected]>
AuthorDate: Tue Sep 3 02:24:28 2024 -0500

    src/roff/troff/reg.cpp: Fix code style nit.
    
    * src/roff/troff/reg.cpp (dump_register_request): Fix code style nit.
      Use C++ `reinterpret_cast` operator instead of C-style type cast.
      (The use of the "dangerously omnipotent" casting operator is made
      necessary by groff's pre-template dictionary implementation.)
---
 ChangeLog              | 8 ++++++++
 src/roff/troff/reg.cpp | 2 +-
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index 1ecaf0480..dfe56d175 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2024-09-03  G. Branden Robinson <[email protected]>
+
+       * src/roff/troff/reg.cpp (dump_register_request): Fix code style
+       nit.  Use C++ `reinterpret_cast` operator instead of C-style
+       type cast.  (The use of the "dangerously omnipotent" casting
+       operator is made necessary by groff's pre-template dictionary
+       implementation.)
+
 2024-09-03  G. Branden Robinson <[email protected]>
 
        * src/roff/troff/reg.cpp: Trivially refactor.  Rename all
diff --git a/src/roff/troff/reg.cpp b/src/roff/troff/reg.cpp
index d8b9047a0..8cc3ba779 100644
--- a/src/roff/troff/reg.cpp
+++ b/src/roff/troff/reg.cpp
@@ -509,7 +509,7 @@ void dump_register_request()
   object_dictionary_iterator iter(register_dictionary);
   reg *r;
   symbol s;
-  while (iter.get(&s, (object **)&r)) {
+  while (iter.get(&s, reinterpret_cast<object **>(&r))) {
     assert(!s.is_null());
     errprint("%1\t", s.contents());
     const char *p = r->get_string();

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

Reply via email to