mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-04 08:36:12 +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
Notes:
sideshowbarker
2024-07-17 20:08:21 +09:00
Author: https://github.com/trflynn89
Commit: 8098eb273a
Pull-request: https://github.com/SerenityOS/serenity/pull/12157
Reviewed-by: https://github.com/linusg ✅
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