mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 04:42:44 +00:00 
			
		
		
		
	TestICCProfile: Don't capture sRGB by value
No behavior change.
This commit is contained in:
		
							parent
							
								
									923027b1df
								
							
						
					
					
						commit
						cd81b3e2fa
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -108,7 +108,7 @@ TEST_CASE(to_pcs) | |||
|     EXPECT_EQ(sRGB_curve.evaluate(0.f), 0.f); | ||||
|     EXPECT_EQ(sRGB_curve.evaluate(1.f), 1.f); | ||||
| 
 | ||||
|     auto xyz_from_sRGB = [sRGB](u8 r, u8 g, u8 b) { | ||||
|     auto xyz_from_sRGB = [&sRGB](u8 r, u8 g, u8 b) { | ||||
|         u8 rgb[3] = { r, g, b }; | ||||
|         return MUST(sRGB->to_pcs(rgb)); | ||||
|     }; | ||||
|  | @ -157,7 +157,7 @@ TEST_CASE(to_pcs) | |||
| TEST_CASE(to_lab) | ||||
| { | ||||
|     auto sRGB = MUST(Gfx::ICC::sRGB()); | ||||
|     auto lab_from_sRGB = [sRGB](u8 r, u8 g, u8 b) { | ||||
|     auto lab_from_sRGB = [&sRGB](u8 r, u8 g, u8 b) { | ||||
|         u8 rgb[3] = { r, g, b }; | ||||
|         return MUST(sRGB->to_lab(rgb)); | ||||
|     }; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Nico Weber
						Nico Weber