mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 20:12: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); | ||||
| 
 | ||||
|     auto project = OwnPtr(new Project(path, move(files))); | ||||
|     auto project = adopt_own(*new Project(path, move(files))); | ||||
|     project->m_type = type; | ||||
|     return project; | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andreas Kling
						Andreas Kling