[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[groff] 10/12: [troff]: Fix code style nit (C++-style type cast).
From: |
G. Branden Robinson |
Subject: |
[groff] 10/12: [troff]: Fix code style nit (C++-style type cast). |
Date: |
Thu, 7 Mar 2024 18:37:44 -0500 (EST) |
gbranden pushed a commit to branch master
in repository groff.
commit e6f119c36ba820a13c00842f1dccb799ef59d4cd
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Thu Mar 7 07:03:41 2024 -0600
[troff]: Fix code style nit (C++-style type cast).
* src/roff/troff/input.cpp (is_usable_as_delimiter): Fix code style nit,
using C++-style type cast instead of C-style cast.
---
ChangeLog | 5 +++++
src/roff/troff/input.cpp | 3 ++-
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index 02a9c4e46..2a9be3b86 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2024-03-07 G. Branden Robinson <g.branden.robinson@gmail.com>
+
+ * src/roff/troff/input.cpp (is_usable_as_delimiter): Fix code
+ style nit, using C++-style type cast instead of C-style cast.
+
2024-03-07 G. Branden Robinson <g.branden.robinson@gmail.com>
* src/roff/troff/input.cpp (get_char_for_escape_parameter):
diff --git a/src/roff/troff/input.cpp b/src/roff/troff/input.cpp
index 2fbbe9106..7fa0e08d4 100644
--- a/src/roff/troff/input.cpp
+++ b/src/roff/troff/input.cpp
@@ -2475,6 +2475,7 @@ int token::operator!=(const token &t)
// is token a suitable delimiter (like ')?
+// Is the current token a suitable delimiter (like `'`)?
bool token::is_usable_as_delimiter(bool report_error)
{
switch(type) {
@@ -2505,7 +2506,7 @@ bool token::is_usable_as_delimiter(bool report_error)
case '.':
if (report_error)
error("character '%1' is not allowed as a starting delimiter",
- char(c));
+ static_cast<char>(c));
return false;
default:
return true;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [groff] 10/12: [troff]: Fix code style nit (C++-style type cast).,
G. Branden Robinson <=