mirror of
https://github.com/esphome/esphome.git
synced 2024-12-12 08:24:55 +01:00
Apply clang-tidy recommendation
This commit is contained in:
parent
5f47c6e255
commit
b2e949c6e9
1 changed files with 1 additions and 1 deletions
|
@ -196,7 +196,7 @@ void TextRunPanel::apply_alignment_to_layout(CalculatedLayout *calculated_layout
|
||||||
int16_t total_line_width = 0;
|
int16_t total_line_width = 0;
|
||||||
int16_t max_line_height = 0;
|
int16_t max_line_height = 0;
|
||||||
int16_t max_baseline = 0;
|
int16_t max_baseline = 0;
|
||||||
for (auto run : line_runs) {
|
for (const auto &run : line_runs) {
|
||||||
total_line_width += run->bounds.w;
|
total_line_width += run->bounds.w;
|
||||||
max_line_height = std::max(run->bounds.h, max_line_height);
|
max_line_height = std::max(run->bounds.h, max_line_height);
|
||||||
max_baseline = std::max(run->baseline, max_baseline);
|
max_baseline = std::max(run->baseline, max_baseline);
|
||||||
|
|
Loading…
Reference in a new issue