mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:17:35 +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
|
@ -235,7 +235,7 @@ void Window::hide()
|
|||
}
|
||||
}
|
||||
|
||||
void Window::set_title(String title)
|
||||
void Window::set_title(DeprecatedString title)
|
||||
{
|
||||
m_title_when_windowless = move(title);
|
||||
if (!is_visible())
|
||||
|
@ -243,7 +243,7 @@ void Window::set_title(String title)
|
|||
ConnectionToWindowServer::the().async_set_window_title(m_window_id, m_title_when_windowless);
|
||||
}
|
||||
|
||||
String Window::title() const
|
||||
DeprecatedString Window::title() const
|
||||
{
|
||||
if (!is_visible())
|
||||
return m_title_when_windowless;
|
||||
|
@ -1281,7 +1281,7 @@ ErrorOr<void> Window::try_add_menu(NonnullRefPtr<Menu> menu)
|
|||
return {};
|
||||
}
|
||||
|
||||
ErrorOr<NonnullRefPtr<Menu>> Window::try_add_menu(String name)
|
||||
ErrorOr<NonnullRefPtr<Menu>> Window::try_add_menu(DeprecatedString name)
|
||||
{
|
||||
auto menu = TRY(m_menubar->try_add_menu({}, move(name)));
|
||||
if (m_window_id) {
|
||||
|
@ -1291,7 +1291,7 @@ ErrorOr<NonnullRefPtr<Menu>> Window::try_add_menu(String name)
|
|||
return menu;
|
||||
}
|
||||
|
||||
Menu& Window::add_menu(String name)
|
||||
Menu& Window::add_menu(DeprecatedString name)
|
||||
{
|
||||
auto menu = MUST(try_add_menu(move(name)));
|
||||
return *menu;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue