mirror of
https://github.com/RGBCube/serenity
synced 2025-07-24 23:37:43 +00:00
HackStudio: Use adopt_own(*new T) instead of OwnPtr(new T)
This commit is contained in:
parent
85b02d887b
commit
845aaaf5fd
1 changed files with 1 additions and 1 deletions
|
@ -240,7 +240,7 @@ OwnPtr<Project> Project::load_from_file(const String& path)
|
||||||
|
|
||||||
quick_sort(files);
|
quick_sort(files);
|
||||||
|
|
||||||
auto project = OwnPtr(new Project(path, move(files)));
|
auto project = adopt_own(*new Project(path, move(files)));
|
||||||
project->m_type = type;
|
project->m_type = type;
|
||||||
return project;
|
return project;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue