gbranden pushed a commit to branch master
in repository groff.

commit ecafee139f1b5732949c7dbcc837ab7d53b9fb4d
Author: G. Branden Robinson <[email protected]>
AuthorDate: Tue Sep 10 00:40:25 2024 -0500

    [troff]: Boolify `is_diversion()`.
    
    * src/roff/troff/div.h (class diversion, class macro_diversion)
      (class top_level_diversion): Boolify trivial member function
      `is_diversion()`.
---
 ChangeLog            | 6 ++++++
 src/roff/troff/div.h | 6 +++---
 2 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 3e5d9b861..2adc9e173 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2024-09-10  G. Branden Robinson <[email protected]>
+
+       * src/roff/troff/div.h (class diversion, class macro_diversion)
+       (class top_level_diversion): Boolify trivial member function
+       `is_diversion()`.
+
 2024-09-10  G. Branden Robinson <[email protected]>
 
        * src/roff/troff/div.h (class diversion, class macro_diversion)
diff --git a/src/roff/troff/div.h b/src/roff/troff/div.h
index fef1ca680..0146b4105 100644
--- a/src/roff/troff/div.h
+++ b/src/roff/troff/div.h
@@ -62,7 +62,7 @@ public:
   virtual void set_diversion_trap(symbol, vunits) = 0;
   virtual void clear_diversion_trap() = 0;
   virtual void copy_file(const char *filename) = 0;
-  virtual int is_diversion() = 0;
+  virtual bool is_diversion() = 0;
 };
 
 class macro;
@@ -88,7 +88,7 @@ public:
   void set_diversion_trap(symbol, vunits);
   void clear_diversion_trap();
   void copy_file(const char *filename);
-  int is_diversion() { return 1; }
+  bool is_diversion() { return true; }
 };
 
 struct trap {
@@ -146,7 +146,7 @@ public:
   void set_diversion_trap(symbol, vunits);
   void clear_diversion_trap();
   void set_last_page() { last_page_count = page_count; }
-  int is_diversion() { return 0; }
+  bool is_diversion() { return false; }
 };
 
 extern top_level_diversion *topdiv;

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

Reply via email to