From e2b69fe7e227c8d6cdaa27ffc76941126ba57731 Mon Sep 17 00:00:00 2001 From: Jonne Ransijn Date: Sat, 16 Nov 2024 23:55:15 +0100 Subject: [PATCH] AK: Restrict template parameter of `JsonArray` constructor This constructor doesn't need to accept iterable containers of anything other than `JsonValue`s. --- AK/JsonArray.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AK/JsonArray.h b/AK/JsonArray.h index bf00110f7d9..4bdf4a1ad50 100644 --- a/AK/JsonArray.h +++ b/AK/JsonArray.h @@ -37,7 +37,7 @@ public: { } - template + template ContainerT> JsonArray(ContainerT const& source) { for (auto& value : source)