1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 08:47:44 +00:00

LibJS: Rename PrimitiveString::has_utf8_string to has_deprecated_string

And rename the member variable from m_utf8_string to m_deprecated_string
to match.
This commit is contained in:
Timothy Flynn 2023-01-13 09:36:12 -05:00 committed by Linus Groh
parent 79e81e8a15
commit 3a004e8f1a
2 changed files with 13 additions and 13 deletions

View file

@ -35,7 +35,7 @@ public:
u32 hash() const;
ThrowCompletionOr<DeprecatedString> deprecated_string() const;
bool has_utf8_string() const { return m_utf8_string.has_value(); }
bool has_deprecated_string() const { return m_deprecated_string.has_value(); }
ThrowCompletionOr<Utf16String> utf16_string() const;
ThrowCompletionOr<Utf16View> utf16_string_view() const;
@ -57,7 +57,7 @@ private:
mutable PrimitiveString* m_lhs { nullptr };
mutable PrimitiveString* m_rhs { nullptr };
mutable Optional<DeprecatedString> m_utf8_string;
mutable Optional<DeprecatedString> m_deprecated_string;
mutable Optional<Utf16String> m_utf16_string;
};