mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-07 17:15:26 +00:00
HackStudio: Use adopt_own(*new T) instead of OwnPtr(new T)
This commit is contained in:
@@ -240,7 +240,7 @@ OwnPtr<Project> Project::load_from_file(const String& path)
|
||||
|
||||
quick_sort(files);
|
||||
|
||||
auto project = OwnPtr(new Project(path, move(files)));
|
||||
auto project = adopt_own(*new Project(path, move(files)));
|
||||
project->m_type = type;
|
||||
return project;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user