groff-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[groff] 41/60: [troff]: Boolify `begin_page()` local variable.


From: G. Branden Robinson
Subject: [groff] 41/60: [troff]: Boolify `begin_page()` local variable.
Date: Wed, 11 Sep 2024 03:38:33 -0400 (EDT)

gbranden pushed a commit to branch master
in repository groff.

commit 48348405c66aeb5f0fe679c6678629f056f04f68
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Mon Sep 9 23:56:40 2024 -0500

    [troff]: Boolify `begin_page()` local variable.
    
    * src/roff/troff/div.cpp (begin_page): Boolify local variable `got_arg`.
---
 ChangeLog              | 5 +++++
 src/roff/troff/div.cpp | 4 ++--
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 1afd5f222..ed07ea48a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2024-09-09  G. Branden Robinson <g.branden.robinson@gmail.com>
+
+       * src/roff/troff/div.cpp (begin_page): Boolify local variable
+       `got_arg`.
+
 2024-09-09  G. Branden Robinson <g.branden.robinson@gmail.com>
 
        * src/roff/troff/div.h (class diversion): Boolify member
diff --git a/src/roff/troff/div.cpp b/src/roff/troff/div.cpp
index df1c912a4..9a7940a9c 100644
--- a/src/roff/troff/div.cpp
+++ b/src/roff/troff/div.cpp
@@ -765,10 +765,10 @@ void when_request()
 
 void begin_page()
 {
-  int got_arg = 0;
+  bool got_arg = false;
   int n = 0;
   if (has_arg() && get_integer(&n, topdiv->get_page_number()))
-    got_arg = 1;
+    got_arg = true;
   while (!tok.is_newline() && !tok.is_eof())
     tok.next();
   if (curdiv == topdiv) {



reply via email to

[Prev in Thread] Current Thread [Next in Thread]