mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 12:28:12 +00:00
AK+Everywhere: Rename String to DeprecatedString
We have a new, improved string type coming up in AK (OOM aware, no null state), and while it's going to use UTF-8, the name UTF8String is a mouthful - so let's free up the String name by renaming the existing class. Making the old one have an annoying name will hopefully also help with quick adoption :^)
This commit is contained in:
parent
f74251606d
commit
6e19ab2bbc
2006 changed files with 11635 additions and 11636 deletions
|
@ -56,7 +56,7 @@ Dialog::ExecResult MessageBox::ask_about_unsaved_changes(Window* parent_window,
|
|||
return box->exec();
|
||||
}
|
||||
|
||||
void MessageBox::set_text(String text)
|
||||
void MessageBox::set_text(DeprecatedString text)
|
||||
{
|
||||
m_text = move(text);
|
||||
build();
|
||||
|
@ -151,7 +151,7 @@ void MessageBox::build()
|
|||
constexpr int button_width = 80;
|
||||
int button_count = 0;
|
||||
|
||||
auto add_button = [&](String label, ExecResult result) -> GUI::Button& {
|
||||
auto add_button = [&](DeprecatedString label, ExecResult result) -> GUI::Button& {
|
||||
auto& button = button_container.add<Button>();
|
||||
button.set_fixed_width(button_width);
|
||||
button.set_text(label);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue