mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-24 16:40:21 +00:00
AK: Add an identity implementation of StringView::from_string_literal()
This is required for the Jakt runtime.
This commit is contained in:
parent
e591c604de
commit
18bc88b806
Notes:
sideshowbarker
2024-07-17 05:09:48 +09:00
Author: https://github.com/alimpfard Commit: https://github.com/SerenityOS/serenity/commit/18bc88b806 Pull-request: https://github.com/SerenityOS/serenity/pull/16396 Reviewed-by: https://github.com/ADKaster Reviewed-by: https://github.com/awesomekling ✅
1 changed files with 6 additions and 0 deletions
|
@ -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&);
|
||||
|
|
Loading…
Reference in a new issue