mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20: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
|
@ -394,7 +394,7 @@ static ErrorOr<void> fill_mounts(Vector<MountInfo>& output)
|
|||
|
||||
ErrorOr<void> TreeMapWidget::analyze(GUI::Statusbar& statusbar)
|
||||
{
|
||||
statusbar.set_text("");
|
||||
statusbar.set_text({});
|
||||
auto progress_window = TRY(ProgressWindow::try_create("Space Analyzer"sv));
|
||||
progress_window->show();
|
||||
|
||||
|
@ -431,9 +431,9 @@ ErrorOr<void> TreeMapWidget::analyze(GUI::Statusbar& statusbar)
|
|||
builder.append(')');
|
||||
first = false;
|
||||
}
|
||||
statusbar.set_text(builder.to_deprecated_string());
|
||||
statusbar.set_text(TRY(builder.to_string()));
|
||||
} else {
|
||||
statusbar.set_text("No errors");
|
||||
statusbar.set_text(TRY("No errors"_string));
|
||||
}
|
||||
|
||||
m_tree = move(tree);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue