gbranden pushed a commit to branch master
in repository groff.
commit ee7c08748a30a1d00caea3204b912fe873b8a49f
Author: G. Branden Robinson <[email protected]>
AuthorDate: Thu Apr 9 23:29:56 2026 -0500
src/roff/troff/div.h: Fix code style nit.
* src/roff/troff/div.h (class diversion, class macro_diversion): Use
Boolean, not numeric, literals as default values for function
arguments of type `bool`.
---
ChangeLog | 6 ++++++
src/roff/troff/div.h | 4 ++--
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 29648718e..04c76bfcb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2026-04-09 G. Branden Robinson <[email protected]>
+
+ * src/roff/troff/div.h (class diversion, class macro_diversion):
+ Use Boolean, not numeric, literals as default values for
+ function arguments of type `bool`.
+
2026-04-09 G. Branden Robinson <[email protected]>
* src/roff/troff/env.cpp: Use `UCHAR_MAX` from ISO C99's
diff --git a/src/roff/troff/div.h b/src/roff/troff/div.h
index cdc9eaf8f..e77b0d484 100644
--- a/src/roff/troff/div.h
+++ b/src/roff/troff/div.h
@@ -50,7 +50,7 @@ public:
hunits /* width */) = 0;
virtual void transparent_output(unsigned char) = 0;
virtual void transparent_output(node *) = 0;
- virtual void space(vunits distance, bool /* forcing */ = 0) = 0;
+ virtual void space(vunits distance, bool /* forcing */ = false) = 0;
#ifdef COLUMN
virtual void vjustify(symbol) = 0;
#endif /* COLUMN */
@@ -80,7 +80,7 @@ public:
vunits /* post_vs */, hunits /* width */);
void transparent_output(unsigned char);
void transparent_output(node *);
- void space(vunits distance, bool /* forcing */ = 0);
+ void space(vunits distance, bool /* forcing */ = false);
#ifdef COLUMN
void vjustify(symbol);
#endif /* COLUMN */
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit