mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 15:12:45 +00:00 
			
		
		
		
	Everywhere: Stop using NonnullOwnPtrVector
Same as NonnullRefPtrVector: weird semantics, questionable benefits.
This commit is contained in:
		
							parent
							
								
									689ca370d4
								
							
						
					
					
						commit
						359d6e7b0b
					
				
					 111 changed files with 517 additions and 503 deletions
				
			
		|  | @ -42,7 +42,7 @@ void RemoteProcess::handle_get_all_objects_response(JsonObject const& response) | |||
|     // FIXME: It would be good if we didn't have to make a local copy of the array value here!
 | ||||
|     auto& object_array = response.get_array("objects"sv).value(); | ||||
| 
 | ||||
|     NonnullOwnPtrVector<RemoteObject> remote_objects; | ||||
|     Vector<NonnullOwnPtr<RemoteObject>> remote_objects; | ||||
|     HashMap<FlatPtr, RemoteObject*> objects_by_address; | ||||
| 
 | ||||
|     for (auto& value : object_array.values()) { | ||||
|  | @ -59,7 +59,7 @@ void RemoteProcess::handle_get_all_objects_response(JsonObject const& response) | |||
|     } | ||||
| 
 | ||||
|     for (size_t i = 0; i < remote_objects.size(); ++i) { | ||||
|         auto& remote_object = remote_objects.ptr_at(i); | ||||
|         auto& remote_object = remote_objects[i]; | ||||
|         auto* parent = objects_by_address.get(remote_object->parent_address).value_or(nullptr); | ||||
|         if (!parent) { | ||||
|             m_roots.append(move(remote_object)); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andreas Kling
						Andreas Kling