mirror of
https://github.com/RGBCube/serenity
synced 2025-05-29 06:55:07 +00:00
AK: Rename adopt() to adopt_ref()
This makes it more symmetrical with adopt_own() (which is used to create a NonnullOwnPtr from the result of a naked new.)
This commit is contained in:
parent
b3db01e20e
commit
b91c49364d
228 changed files with 461 additions and 461 deletions
|
@ -228,7 +228,7 @@ NonnullRefPtr<Program> Parser::parse_program()
|
|||
{
|
||||
auto rule_start = push_start();
|
||||
ScopePusher scope(*this, ScopePusher::Var | ScopePusher::Let | ScopePusher::Function);
|
||||
auto program = adopt(*new Program({ m_filename, rule_start.position(), position() }));
|
||||
auto program = adopt_ref(*new Program({ m_filename, rule_start.position(), position() }));
|
||||
|
||||
bool first = true;
|
||||
while (!done()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue