diff options
author | Timothy Flynn <trflynn89@pm.me> | 2022-01-27 07:12:41 -0500 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-01-27 21:16:44 +0000 |
commit | 8098eb273a16896d57a9c3a081880d59a15a6e1d (patch) | |
tree | e53a0f3d4c4b01d6172b7a37ee66ead23967b9ba /Userland/Libraries/LibJS/Runtime/Intl | |
parent | 236fd0a2cbcf265222766161a8fb1ab3896f9b1a (diff) | |
download | serenity-8098eb273a16896d57a9c3a081880d59a15a6e1d.zip |
LibJS: Add explicit constructors for PatternPartition
This is to enable emplacing this struct in containers. GCC is fine with
emplacing without this constructor, but Clang raises an error.
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/Intl')
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/Intl/AbstractOperations.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/Intl/AbstractOperations.h b/Userland/Libraries/LibJS/Runtime/Intl/AbstractOperations.h index 5edddd55eb..57ff6c47fa 100644 --- a/Userland/Libraries/LibJS/Runtime/Intl/AbstractOperations.h +++ b/Userland/Libraries/LibJS/Runtime/Intl/AbstractOperations.h @@ -35,6 +35,14 @@ struct LocaleResult { }; struct PatternPartition { + PatternPartition() = default; + + PatternPartition(StringView type_string, String value_string) + : type(type_string) + , value(move(value_string)) + { + } + StringView type; String value; }; |