From 466259a98598f8afd9ffa21aa0a0fa3034778ead Mon Sep 17 00:00:00 2001 From: Alexandra Latysheva Date: Sun, 11 Oct 2020 10:13:27 +0000 Subject: [PATCH] using auto* for pointers --- oss-internship-2020/libtiff/example/main_sandboxed.cc | 2 +- oss-internship-2020/libtiff/test/raw_decode.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/oss-internship-2020/libtiff/example/main_sandboxed.cc b/oss-internship-2020/libtiff/example/main_sandboxed.cc index b9c7698..7b9b481 100644 --- a/oss-internship-2020/libtiff/example/main_sandboxed.cc +++ b/oss-internship-2020/libtiff/example/main_sandboxed.cc @@ -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(limits.min_red) && TIFFGetR(rgba) <= static_cast(limits.max_red) && TIFFGetG(rgba) >= static_cast(limits.min_green) && diff --git a/oss-internship-2020/libtiff/test/raw_decode.cc b/oss-internship-2020/libtiff/test/raw_decode.cc index 36bf842..f27658a 100644 --- a/oss-internship-2020/libtiff/test/raw_decode.cc +++ b/oss-internship-2020/libtiff/test/raw_decode.cc @@ -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(limits.min_red) && TIFFGetR(rgba) <= static_cast(limits.max_red) && TIFFGetG(rgba) >= static_cast(limits.min_green) &&