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:
parent
236fd0a2cb
commit
8098eb273a
1 changed files with 8 additions and 0 deletions
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue