From 46e61d208bd19e5e0e406d94a69e4b582ee32dc5 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sun, 21 Mar 2021 17:37:57 +0100 Subject: LibJS: Avoid unnecessary FlyString(String) churn in Reference ctors --- Userland/Libraries/LibJS/Runtime/Reference.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Userland/Libraries/LibJS/Runtime') diff --git a/Userland/Libraries/LibJS/Runtime/Reference.h b/Userland/Libraries/LibJS/Runtime/Reference.h index c81d964440..d5a8010916 100644 --- a/Userland/Libraries/LibJS/Runtime/Reference.h +++ b/Userland/Libraries/LibJS/Runtime/Reference.h @@ -43,7 +43,7 @@ public: } enum LocalVariableTag { LocalVariable }; - Reference(LocalVariableTag, const String& name, bool strict = false) + Reference(LocalVariableTag, const FlyString& name, bool strict = false) : m_base(js_null()) , m_name(name) , m_strict(strict) @@ -52,7 +52,7 @@ public: } enum GlobalVariableTag { GlobalVariable }; - Reference(GlobalVariableTag, const String& name, bool strict = false) + Reference(GlobalVariableTag, const FlyString& name, bool strict = false) : m_base(js_null()) , m_name(name) , m_strict(strict) -- cgit v1.2.3