mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 07:47: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
|
@ -17,7 +17,7 @@ class NetworkSettingsWidget : public GUI::SettingsWindow::Tab {
|
|||
|
||||
public:
|
||||
virtual void apply_settings() override;
|
||||
void switch_adapter(String const& adapter);
|
||||
void switch_adapter(DeprecatedString const& adapter);
|
||||
|
||||
private:
|
||||
NetworkSettingsWidget();
|
||||
|
@ -25,16 +25,16 @@ private:
|
|||
struct NetworkAdapterData {
|
||||
bool enabled = false;
|
||||
bool dhcp = false;
|
||||
String ip_address;
|
||||
DeprecatedString ip_address;
|
||||
int cidr = 0;
|
||||
String default_gateway;
|
||||
DeprecatedString default_gateway;
|
||||
};
|
||||
|
||||
void on_switch_adapter(String const& adapter);
|
||||
void on_switch_adapter(DeprecatedString const& adapter);
|
||||
void on_switch_enabled_or_dhcp();
|
||||
|
||||
HashMap<String, NetworkAdapterData> m_network_adapters;
|
||||
Vector<String> m_adapter_names;
|
||||
HashMap<DeprecatedString, NetworkAdapterData> m_network_adapters;
|
||||
Vector<DeprecatedString> m_adapter_names;
|
||||
NetworkAdapterData* m_current_adapter_data = nullptr;
|
||||
|
||||
RefPtr<GUI::CheckBox> m_enabled_checkbox;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue