From d00b79568faef7c89b4be94b6f2a9390073ede5b Mon Sep 17 00:00:00 2001 From: Lenny Maiorani Date: Mon, 14 Mar 2022 10:25:06 -0600 Subject: Libraries: Use default constructors/destructors in LibJS https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#cother-other-default-operation-rules "The compiler is more likely to get the default semantics right and you cannot implement these functions better than the compiler." --- Userland/Libraries/LibJS/Script.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Userland/Libraries/LibJS/Script.h') diff --git a/Userland/Libraries/LibJS/Script.h b/Userland/Libraries/LibJS/Script.h index d6aae0a4f4..263320cd03 100644 --- a/Userland/Libraries/LibJS/Script.h +++ b/Userland/Libraries/LibJS/Script.h @@ -24,7 +24,7 @@ public: virtual ~HostDefined() = default; }; - ~Script(); + ~Script() = default; static Result, Vector> parse(StringView source_text, Realm&, StringView filename = {}, HostDefined* = nullptr, size_t line_number_offset = 1); Realm& realm() { return *m_realm.cell(); } -- cgit v1.2.3