mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 13:50:03 +00:00 
			
		
		
		
	packet: Simplify operator bool overload
Previously this would cause a -Wnull-conversion warning
This commit is contained in:
		
							parent
							
								
									dc5d7a802f
								
							
						
					
					
						commit
						0a988e07cb
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -63,7 +63,7 @@ bool Packet::EndOfPacket() const { | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| Packet::operator bool() const { | Packet::operator bool() const { | ||||||
|     return is_valid ? &Packet::CheckSize : nullptr; |     return is_valid; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| Packet& Packet::operator>>(bool& out_data) { | Packet& Packet::operator>>(bool& out_data) { | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue