mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 14:48:14 +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:
parent
b2b942b4ec
commit
bd5d8e9d35
15 changed files with 505 additions and 494 deletions
|
@ -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
|
||||
*/
|
||||
|
@ -14,7 +14,7 @@ namespace JS {
|
|||
|
||||
class SourceCode : public RefCounted<SourceCode> {
|
||||
public:
|
||||
static NonnullRefPtr<SourceCode> create(String filename, String code);
|
||||
static NonnullRefPtr<SourceCode const> create(String filename, String code);
|
||||
|
||||
String const& filename() const;
|
||||
String const& code() const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue