mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:57:44 +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
|
@ -12,7 +12,7 @@
|
|||
|
||||
namespace DNS {
|
||||
|
||||
Answer::Answer(Name const& name, RecordType type, RecordClass class_code, u32 ttl, String const& record_data, bool mdns_cache_flush)
|
||||
Answer::Answer(Name const& name, RecordType type, RecordClass class_code, u32 ttl, DeprecatedString const& record_data, bool mdns_cache_flush)
|
||||
: m_name(name)
|
||||
, m_type(type)
|
||||
, m_class_code(class_code)
|
||||
|
@ -110,14 +110,14 @@ bool encode(Encoder& encoder, DNS::Answer const& answer)
|
|||
template<>
|
||||
ErrorOr<void> decode(Decoder& decoder, DNS::Answer& answer)
|
||||
{
|
||||
String name;
|
||||
DeprecatedString name;
|
||||
TRY(decoder.decode(name));
|
||||
u16 record_type, class_code;
|
||||
TRY(decoder.decode(record_type));
|
||||
TRY(decoder.decode(class_code));
|
||||
u32 ttl;
|
||||
TRY(decoder.decode(ttl));
|
||||
String record_data;
|
||||
DeprecatedString record_data;
|
||||
TRY(decoder.decode(record_data));
|
||||
bool cache_flush;
|
||||
TRY(decoder.decode(cache_flush));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue