1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-28 11:55:12 +00:00

AK: Add an identity implementation of StringView::from_string_literal()

This is required for the Jakt runtime.
This commit is contained in:
Ali Mohammad Pur 2022-12-10 19:43:47 +03:30 committed by Ali Mohammad Pur
parent e591c604de
commit 18bc88b806

View file

@ -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&); StringView(ByteBuffer const&);
#ifndef KERNEL #ifndef KERNEL
StringView(String const&); StringView(String const&);