using auto* for pointers

This commit is contained in:
Alexandra Latysheva 2020-10-11 10:13:27 +00:00
parent ab3f992c78
commit 466259a985
2 changed files with 2 additions and 2 deletions

View File

@ -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) &&

View File

@ -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) &&