mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 05:40:04 +00:00 
			
		
		
		
	input_common/udp: Silence -Wreorder warning for Socket
Amends the constructor initializer list to specify the order of its elements in the same order that initialization would occur.
This commit is contained in:
		
							parent
							
								
									d7a58fe24d
								
							
						
					
					
						commit
						7d45fdc1df
					
				
					 1 changed files with 3 additions and 4 deletions
				
			
		|  | @ -31,10 +31,9 @@ public: | ||||||
| 
 | 
 | ||||||
|     explicit Socket(const std::string& host, u16 port, u8 pad_index, u32 client_id, |     explicit Socket(const std::string& host, u16 port, u8 pad_index, u32 client_id, | ||||||
|                     SocketCallback callback) |                     SocketCallback callback) | ||||||
|         : client_id(client_id), timer(io_service), |         : callback(std::move(callback)), timer(io_service), | ||||||
|           send_endpoint(udp::endpoint(address_v4::from_string(host), port)), |           socket(io_service, udp::endpoint(udp::v4(), 0)), client_id(client_id), | ||||||
|           socket(io_service, udp::endpoint(udp::v4(), 0)), pad_index(pad_index), |           pad_index(pad_index), send_endpoint(udp::endpoint(address_v4::from_string(host), port)) {} | ||||||
|           callback(std::move(callback)) {} |  | ||||||
| 
 | 
 | ||||||
|     void Stop() { |     void Stop() { | ||||||
|         io_service.stop(); |         io_service.stop(); | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue