Clang-tidy fixes

This commit is contained in:
Michael Davidson 2024-01-06 12:47:58 +11:00
parent 00169c7633
commit 87e98e0e13
No known key found for this signature in database
GPG key ID: B8D1A99712B8B0EB

View file

@ -134,10 +134,8 @@ void TextRunPanel::apply_alignment_to_lines_(std::vector<std::shared_ptr<LineInf
const auto y_align = display::TextAlign(int(this->text_align_) & TEXT_ALIGN_Y_MASK); const auto y_align = display::TextAlign(int(this->text_align_) & TEXT_ALIGN_Y_MASK);
int16_t max_line_width = 0; int16_t max_line_width = 0;
int16_t total_height = 0;
for (const auto &line : lines) { for (const auto &line : lines) {
max_line_width = std::max(line->total_width, max_line_width); max_line_width = std::max(line->total_width, max_line_width);
total_height += line->max_height;
} }
int total_y_adjustment = 0; int total_y_adjustment = 0;