From 843c9d6cd77dadfa669253db78e0cb1c0ff7c258 Mon Sep 17 00:00:00 2001 From: Kenneth Myhra Date: Tue, 28 Feb 2023 21:35:41 +0100 Subject: [PATCH] AK: Add new String constructor to URL --- AK/URL.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/AK/URL.h b/AK/URL.h index c4fc76506b5..5a0f7bb65cf 100644 --- a/AK/URL.h +++ b/AK/URL.h @@ -8,6 +8,7 @@ #pragma once #include +#include #include #include @@ -47,6 +48,10 @@ public: : URL(string.view()) { } + URL(String const& string) + : URL(string.bytes_as_string_view()) + { + } bool is_valid() const { return m_valid; }