mirror of
				https://github.com/yuzu-emu/yuzu.git
				synced 2025-10-31 03:32:51 +00:00 
			
		
		
		
	common: Get rid of a cast in swap.h
This commit is contained in:
		
							parent
							
								
									506ab06238
								
							
						
					
					
						commit
						bc886a7a03
					
				| @ -148,7 +148,7 @@ struct swap_struct_t { | ||||
|     typedef swap_struct_t<T, F> swapped_t; | ||||
| 
 | ||||
| protected: | ||||
|     T value; | ||||
|     T value = T(); | ||||
| 
 | ||||
|     static T swap(T v) { | ||||
|         return F::swap(v); | ||||
| @ -158,7 +158,7 @@ public: | ||||
|         return swap(value); | ||||
| 
 | ||||
|     } | ||||
|     swap_struct_t() : value((T)0) {} | ||||
|     swap_struct_t() = default; | ||||
|     swap_struct_t(const T &v): value(swap(v)) {} | ||||
| 
 | ||||
|     template <typename S> | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Lioncash
						Lioncash