gbranden pushed a commit to branch master
in repository groff.
commit ee0f542c3530462197613825494699bca03f8708
Author: G. Branden Robinson <[email protected]>
AuthorDate: Tue Jun 3 05:35:56 2025 -0500
[troff]: Drop unnecessary temporary.
* src/roff/troff/input.cpp (token::next): Drop unnecessary temporary
variable from `\F` escape sequence handler.
---
ChangeLog | 5 +++++
src/roff/troff/input.cpp | 3 +--
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index fd08708b7..b0415e023 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2025-06-03 G. Branden Robinson <[email protected]>
+
+ * src/roff/troff/input.cpp (token::next): Drop unnecessary
+ temporary variable from `\F` escape sequence handler.
+
2025-06-03 G. Branden Robinson <[email protected]>
* src/roff/troff/input.cpp (token::next): Replace most of the
diff --git a/src/roff/troff/input.cpp b/src/roff/troff/input.cpp
index 2a2e3123a..7fd5f6f4d 100644
--- a/src/roff/troff/input.cpp
+++ b/src/roff/troff/input.cpp
@@ -2327,8 +2327,7 @@ void token::next()
}
case 'F':
{
- symbol s = read_escape_parameter(ALLOW_EMPTY);
- curenv->set_family(s);
+ curenv->set_family(read_escape_parameter(ALLOW_EMPTY));
have_formattable_input = true;
break;
}
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit