[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[groff] 75/115: src/preproc/eqn/box.cpp: Fix code style nits.
From: |
G. Branden Robinson |
Subject: |
[groff] 75/115: src/preproc/eqn/box.cpp: Fix code style nits. |
Date: |
Thu, 1 Jun 2023 10:46:12 -0400 (EDT) |
gbranden pushed a commit to branch branden-2022-06-01
in repository groff.
commit a5e3aed21cd7539d81f7ae438aedef2ec9324f37
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Fri Apr 7 21:33:10 2023 -0500
src/preproc/eqn/box.cpp: Fix code style nits.
* Annotate null pointers with `nullptr` comment to ease any future
transition to C++11, which defines it as a keyword.
* Drop trailing spaces on input lines.
* Wrap overlong input line.
---
src/preproc/eqn/box.cpp | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
diff --git a/src/preproc/eqn/box.cpp b/src/preproc/eqn/box.cpp
index 5f6343eeb..b3395a3fb 100644
--- a/src/preproc/eqn/box.cpp
+++ b/src/preproc/eqn/box.cpp
@@ -23,12 +23,12 @@ along with this program. If not, see
<http://www.gnu.org/licenses/>. */
const char *current_roman_font;
-char *gfont = 0;
-char *grfont = 0;
-char *gbfont = 0;
+char *gfont = 0 /* nullptr */;
+char *grfont = 0 /* nullptr */;
+char *gbfont = 0 /* nullptr */;
int gsize = 0;
-int script_size_reduction = -1; // negative means reduce by a
percentage
+int script_size_reduction = -1; // negative means reduce by a percentage
int positive_space = -1;
int negative_space = -1;
@@ -435,7 +435,7 @@ int box::right_is_italic()
void box::hint(unsigned)
{
}
-
+
void box::handle_char_type(int, int)
{
}
@@ -499,7 +499,8 @@ int pointer_box::compute_metrics(int style)
void pointer_box::compute_subscript_kern()
{
p->compute_subscript_kern();
- printf(".nr " SUB_KERN_FORMAT " \\n[" SUB_KERN_FORMAT "]\n", uid, p->uid);
+ printf(".nr " SUB_KERN_FORMAT " \\n[" SUB_KERN_FORMAT "]\n", uid,
+ p->uid);
}
void pointer_box::compute_skew()
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [groff] 75/115: src/preproc/eqn/box.cpp: Fix code style nits.,
G. Branden Robinson <=