summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibRegex/RegexByteCode.cpp
diff options
context:
space:
mode:
authorTimothy Flynn <trflynn89@pm.me>2023-01-06 11:00:24 -0500
committerLinus Groh <mail@linusgroh.de>2023-01-08 12:13:15 +0100
commit425c168dedf0138cb5d5a96c1d5cccce80afe030 (patch)
tree43f41ce3639899e4e548e3c8d114e0dacf5de7f8 /Userland/Libraries/LibRegex/RegexByteCode.cpp
parent39bda0073edb4a95d3192879157c48e094bd89af (diff)
downloadserenity-425c168dedf0138cb5d5a96c1d5cccce80afe030.zip
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.
Diffstat (limited to 'Userland/Libraries/LibRegex/RegexByteCode.cpp')
-rw-r--r--Userland/Libraries/LibRegex/RegexByteCode.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibRegex/RegexByteCode.cpp b/Userland/Libraries/LibRegex/RegexByteCode.cpp
index ede861eecb..07e22f5ae8 100644
--- a/Userland/Libraries/LibRegex/RegexByteCode.cpp
+++ b/Userland/Libraries/LibRegex/RegexByteCode.cpp
@@ -517,7 +517,7 @@ ALWAYS_INLINE ExecutionResult OpCode_Compare::execute(MatchInput const& input, M
return ExecutionResult::Failed_ExecuteLowPrioForks;
Optional<DeprecatedString> str;
- Vector<u16, 1> utf16;
+ Utf16Data utf16;
Vector<u32> data;
data.ensure_capacity(length);
for (size_t i = offset; i < offset + length; ++i)