mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 13:12:46 +00:00 
			
		
		
		
	Services: Cast unused IPC::new_client_connection() results to void
These ones all manage their storage internally, whereas the WebContent and ImageDecoder ones require the caller to manage their lifetime. This distinction is not obvious to the user without looking through the code, so an API that makes this clearer would be nice.
This commit is contained in:
		
							parent
							
								
									c67c1b583a
								
							
						
					
					
						commit
						92f8514a85
					
				
					 12 changed files with 13 additions and 13 deletions
				
			
		|  | @ -23,7 +23,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments) | |||
|     server->on_accept = [&](auto client_socket) { | ||||
|         static int s_next_client_id = 0; | ||||
|         int client_id = ++s_next_client_id; | ||||
|         IPC::new_client_connection<NotificationServer::ClientConnection>(move(client_socket), client_id); | ||||
|         (void)IPC::new_client_connection<NotificationServer::ClientConnection>(move(client_socket), client_id); | ||||
|     }; | ||||
| 
 | ||||
|     TRY(Core::System::unveil("/res", "r")); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Sam Atkins
						Sam Atkins