1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 10:28:10 +00:00

HackStudio: Use adopt_own(*new T) instead of OwnPtr(new T)

This commit is contained in:
Andreas Kling 2020-08-12 12:17:20 +02:00
parent 85b02d887b
commit 845aaaf5fd

View file

@ -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;
}