From 18bc88b806eb61d34f447a6dd06b8ec1dd5e6ecb Mon Sep 17 00:00:00 2001 From: Ali Mohammad Pur Date: Sat, 10 Dec 2022 19:43:47 +0330 Subject: [PATCH] AK: Add an identity implementation of StringView::from_string_literal() This is required for the Jakt runtime. --- AK/StringView.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/AK/StringView.h b/AK/StringView.h index f238601ae0..0f1b1dbefe 100644 --- a/AK/StringView.h +++ b/AK/StringView.h @@ -40,6 +40,12 @@ public: { } + // Note: This is here for Jakt. + ALWAYS_INLINE static StringView from_string_literal(StringView string) + { + return string; + } + StringView(ByteBuffer const&); #ifndef KERNEL StringView(String const&);