gbranden pushed a commit to branch master
in repository groff.
commit ca2a0acc6086c118558ee4a1861e44251f1e12c9
Author: G. Branden Robinson <[email protected]>
AuthorDate: Tue May 13 11:39:41 2025 -0500
src/roff/troff/node.cpp: Rename local variable.
* src/roff/troff/node.cpp (troff_output_file::fill_color)
(troff_output_file::stroke_color): Rename local variable from `cs` to
`scheme`; `cs` can be confusing in a troff context.
---
ChangeLog | 6 ++++++
src/roff/troff/node.cpp | 12 ++++++------
2 files changed, 12 insertions(+), 6 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 55c8821b2..c9ba9fc2a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2025-05-13 G. Branden Robinson <[email protected]>
+
+ * src/roff/troff/node.cpp (troff_output_file::fill_color)
+ (troff_output_file::stroke_color): Rename local variable from
+ `cs` to `scheme`; `cs` can be confusing in a troff context.
+
2025-05-13 G. Branden Robinson <[email protected]>
* src/roff/troff/node.cpp: Fix code style nits.
diff --git a/src/roff/troff/node.cpp b/src/roff/troff/node.cpp
index 33a49d8ca..7adc856b1 100644
--- a/src/roff/troff/node.cpp
+++ b/src/roff/troff/node.cpp
@@ -1290,9 +1290,9 @@ void troff_output_file::fill_color(color *col)
do_motion();
put("DF");
unsigned int components[4];
- color_scheme cs;
- cs = col->get_components(components);
- switch (cs) {
+ color_scheme scheme;
+ scheme = col->get_components(components);
+ switch (scheme) {
case DEFAULT:
put('d');
break;
@@ -1344,9 +1344,9 @@ void troff_output_file::stroke_color(color *col)
do_motion();
put("m");
unsigned int components[4];
- color_scheme cs;
- cs = col->get_components(components);
- switch (cs) {
+ color_scheme scheme;
+ scheme = col->get_components(components);
+ switch (scheme) {
case DEFAULT:
put('d');
break;
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit