mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-06 08:10:02 +00:00
AK: Restrict template parameter of JsonArray
constructor
This constructor doesn't need to accept iterable containers of anything other than `JsonValue`s.
This commit is contained in:
parent
a4f23c512c
commit
e2b69fe7e2
Notes:
github-actions[bot]
2024-12-04 16:47:01 +00:00
Author: https://github.com/yyny
Commit: e2b69fe7e2
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2454
Reviewed-by: https://github.com/AtkinsSJ ✅
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ public:
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
template<IterableContainer ContainerT>
|
template<IterableContainerOf<JsonValue> ContainerT>
|
||||||
JsonArray(ContainerT const& source)
|
JsonArray(ContainerT const& source)
|
||||||
{
|
{
|
||||||
for (auto& value : source)
|
for (auto& value : source)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue