mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:57:35 +00:00
LibGUI+Userland: Port StatusBar::text() and set_text functions to String
This commit is contained in:
parent
2064f544c6
commit
2029750519
27 changed files with 88 additions and 88 deletions
|
@ -963,7 +963,7 @@ void MainWidget::update_statusbar()
|
|||
else if (Gfx::Emoji::emoji_for_code_point(glyph))
|
||||
TRY(builder.try_appendff(" [emoji]"));
|
||||
|
||||
m_statusbar->set_text(0, builder.to_deprecated_string());
|
||||
m_statusbar->set_text(0, TRY(builder.to_string()));
|
||||
|
||||
builder.clear();
|
||||
|
||||
|
@ -972,7 +972,7 @@ void MainWidget::update_statusbar()
|
|||
TRY(builder.try_appendff("{} glyphs selected", selection.size()));
|
||||
else
|
||||
TRY(builder.try_appendff("U+{:04X}-U+{:04X}", m_range.first, m_range.last));
|
||||
m_statusbar->set_text(1, builder.to_deprecated_string());
|
||||
m_statusbar->set_text(1, TRY(builder.to_string()));
|
||||
|
||||
return {};
|
||||
}();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue