mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-25 17:15:44 +00:00
LibJS: Make RefPtr and NonnullRefPtr usage const-correct
This mainly affected the AST, which is now const throughout.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2022, Andreas Kling <kling@serenityos.org>
|
||||
* Copyright (c) 2022-2023, Andreas Kling <kling@serenityos.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
@@ -12,7 +12,7 @@
|
||||
|
||||
namespace JS {
|
||||
|
||||
NonnullRefPtr<SourceCode> SourceCode::create(String filename, String code)
|
||||
NonnullRefPtr<SourceCode const> SourceCode::create(String filename, String code)
|
||||
{
|
||||
return adopt_ref(*new SourceCode(move(filename), move(code)));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user