1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 08:24:58 +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&);
#ifndef KERNEL
StringView(String const&);