mirror of
https://github.com/google/sandboxed-api.git
synced 2024-03-22 13:11:30 +08:00
using auto* for pointers
This commit is contained in:
parent
ab3f992c78
commit
466259a985
|
@ -104,7 +104,7 @@ absl::Status CheckRgbaPixel(uint32_t pixel, const ChannelLimits& limits,
|
|||
return absl::InternalError("Buffer overrun\n");
|
||||
}
|
||||
|
||||
auto* rgba = buffer[adjusted_pixel];
|
||||
auto rgba = buffer[adjusted_pixel];
|
||||
if (TIFFGetR(rgba) >= static_cast<unsigned>(limits.min_red) &&
|
||||
TIFFGetR(rgba) <= static_cast<unsigned>(limits.max_red) &&
|
||||
TIFFGetG(rgba) >= static_cast<unsigned>(limits.min_green) &&
|
||||
|
|
|
@ -115,7 +115,7 @@ bool CheckRgbaPixel(uint32_t pixel, const ChannelLimits& limits,
|
|||
return true;
|
||||
}
|
||||
|
||||
auto* rgba = buffer[adjusted_pixel];
|
||||
auto rgba = buffer[adjusted_pixel];
|
||||
bool comp = !(TIFFGetR(rgba) >= static_cast<unsigned>(limits.min_red) &&
|
||||
TIFFGetR(rgba) <= static_cast<unsigned>(limits.max_red) &&
|
||||
TIFFGetG(rgba) >= static_cast<unsigned>(limits.min_green) &&
|
||||
|
|
Loading…
Reference in New Issue
Block a user