From 8098eb273a16896d57a9c3a081880d59a15a6e1d Mon Sep 17 00:00:00 2001 From: Timothy Flynn Date: Thu, 27 Jan 2022 07:12:41 -0500 Subject: [PATCH] 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. --- .../Libraries/LibJS/Runtime/Intl/AbstractOperations.h | 8 ++++++++ 1 file changed, 8 insertions(+) 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; };