mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 08:36:15 +00:00
Everywhere: Fix incorrect uses of String::format and StringBuilder::appendf
These changes are arbitrarily divided into multiple commits to make it easier to find potentially introduced bugs with git bisect.
This commit is contained in:
committed by
Andreas Kling
parent
6d97b623cd
commit
fe2b8906d4
@@ -1356,7 +1356,7 @@ String Style::to_string() const
|
||||
if (m_foreground.m_is_rgb) {
|
||||
builder.join(", ", m_foreground.m_rgb_color);
|
||||
} else {
|
||||
builder.appendf("(XtermColor) %d", m_foreground.m_xterm_color);
|
||||
builder.appendf("(XtermColor) %d", (int)m_foreground.m_xterm_color);
|
||||
}
|
||||
builder.append("), ");
|
||||
}
|
||||
@@ -1366,7 +1366,7 @@ String Style::to_string() const
|
||||
if (m_background.m_is_rgb) {
|
||||
builder.join(' ', m_background.m_rgb_color);
|
||||
} else {
|
||||
builder.appendf("(XtermColor) %d", m_background.m_xterm_color);
|
||||
builder.appendf("(XtermColor) %d", (int)m_background.m_xterm_color);
|
||||
}
|
||||
builder.append("), ");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user