Fix clang-tidy: readability-non-const-parameter
authorColin Clark <colin.clark@cclark.uk>
Sat, 3 Feb 2024 16:02:43 +0000 (16:02 +0000)
committerColin Clark <colin.clark@cclark.uk>
Sat, 3 Feb 2024 16:02:43 +0000 (16:02 +0000)
The change suggested for exiv2.cc fails on further checks.

src/exiv2.cc

index b41db97..e16d89b 100644 (file)
@@ -1235,7 +1235,7 @@ guchar *exif_get_preview(ExifData *exif, guint *data_len, gint requested_width,
        }
 }
 
-void exif_free_preview(const guchar *buf)
+void exif_free_preview(guchar *buf)
 {
        delete[] static_cast<Exiv2::byte*>(buf);
 }