mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 09:04:59 +00:00
Everywhere: Rename {Deprecated => Byte}String
This commit un-deprecates DeprecatedString, and repurposes it as a byte string. As the null state has already been removed, there are no other particularly hairy blockers in repurposing this type as a byte string (what it _really_ is). This commit is auto-generated: $ xs=$(ack -l \bDeprecatedString\b\|deprecated_string AK Userland \ Meta Ports Ladybird Tests Kernel) $ perl -pie 's/\bDeprecatedString\b/ByteString/g; s/deprecated_string/byte_string/g' $xs $ clang-format --style=file -i \ $(git diff --name-only | grep \.cpp\|\.h) $ gn format $(git ls-files '*.gn' '*.gni')
This commit is contained in:
parent
38d62563b3
commit
5e1499d104
1615 changed files with 10257 additions and 10257 deletions
|
@ -107,7 +107,7 @@ Tab::Tab(BrowserWindow* window, WebContentOptions const& web_content_options, St
|
|||
};
|
||||
|
||||
view().on_link_hover = [this](auto const& url) {
|
||||
m_hover_label->setText(qstring_from_ak_string(url.to_deprecated_string()));
|
||||
m_hover_label->setText(qstring_from_ak_string(url.to_byte_string()));
|
||||
update_hover_label();
|
||||
m_hover_label->show();
|
||||
};
|
||||
|
@ -123,7 +123,7 @@ Tab::Tab(BrowserWindow* window, WebContentOptions const& web_content_options, St
|
|||
m_history.replace_current(url, m_title.toUtf8().data());
|
||||
}
|
||||
|
||||
m_location_edit->setText(url.to_deprecated_string().characters());
|
||||
m_location_edit->setText(url.to_byte_string().characters());
|
||||
m_location_edit->setCursorPosition(0);
|
||||
|
||||
// Don't add to history if back or forward is pressed
|
||||
|
@ -648,7 +648,7 @@ void Tab::back()
|
|||
|
||||
m_is_history_navigation = true;
|
||||
m_history.go_back();
|
||||
view().load(m_history.current().url.to_deprecated_string());
|
||||
view().load(m_history.current().url.to_byte_string());
|
||||
}
|
||||
|
||||
void Tab::forward()
|
||||
|
@ -658,7 +658,7 @@ void Tab::forward()
|
|||
|
||||
m_is_history_navigation = true;
|
||||
m_history.go_forward();
|
||||
view().load(m_history.current().url.to_deprecated_string());
|
||||
view().load(m_history.current().url.to_byte_string());
|
||||
}
|
||||
|
||||
void Tab::reload()
|
||||
|
@ -667,7 +667,7 @@ void Tab::reload()
|
|||
return;
|
||||
|
||||
m_is_history_navigation = true;
|
||||
view().load(m_history.current().url.to_deprecated_string());
|
||||
view().load(m_history.current().url.to_byte_string());
|
||||
}
|
||||
|
||||
void Tab::open_link(URL const& url)
|
||||
|
@ -703,7 +703,7 @@ int Tab::tab_index()
|
|||
return m_window->tab_index(this);
|
||||
}
|
||||
|
||||
void Tab::debug_request(DeprecatedString const& request, DeprecatedString const& argument)
|
||||
void Tab::debug_request(ByteString const& request, ByteString const& argument)
|
||||
{
|
||||
if (request == "dump-history")
|
||||
m_history.dump();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue