1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 05:07:35 +00:00

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.
This commit is contained in:
Timothy Flynn 2022-01-27 07:12:41 -05:00 committed by Linus Groh
parent 236fd0a2cb
commit 8098eb273a

View file

@ -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;
};