1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 17:37:34 +00:00

AK+LibJS+LibRegex: Define an alias for UTF-16 string data storage

Instead of writing out "Vector<u16, 1>" everywhere, let's have a name
for it.
This commit is contained in:
Timothy Flynn 2023-01-06 11:00:24 -05:00 committed by Linus Groh
parent 39bda0073e
commit 425c168ded
10 changed files with 37 additions and 34 deletions

View file

@ -266,7 +266,7 @@ public:
return view;
}
RegexStringView construct_as_same(Span<u32> data, Optional<DeprecatedString>& optional_string_storage, Vector<u16, 1>& optional_utf16_storage) const
RegexStringView construct_as_same(Span<u32> data, Optional<DeprecatedString>& optional_string_storage, Utf16Data& optional_utf16_storage) const
{
auto view = m_view.visit(
[&]<typename T>(T const&) {