From c03af98725e3276cecaae9898cc3f68983b697d9 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Sun, 24 Jul 2022 16:42:54 -0700 Subject: [PATCH] clang-tidy: use auto Signed-off-by: Rosen Penev --- src/pngchunk_int.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pngchunk_int.cpp b/src/pngchunk_int.cpp index 2d7cdcbd..05679947 100644 --- a/src/pngchunk_int.cpp +++ b/src/pngchunk_int.cpp @@ -589,7 +589,7 @@ std::string PngChunk::writeRawProfile(const std::string& profileData, const char std::ostringstream oss; oss << '\n' << profileType << '\n' << std::setw(8) << profileData.size(); - const byte* sp = reinterpret_cast(profileData.data()); + auto sp = reinterpret_cast(profileData.data()); for (std::string::size_type i = 0; i < profileData.size(); ++i) { if (i % 36 == 0) oss << '\n';