From: Colin Clark Date: Sat, 3 Feb 2024 16:02:43 +0000 (+0000) Subject: Fix clang-tidy: readability-non-const-parameter X-Git-Tag: v2.3~50 X-Git-Url: http://geeqie.org/cgi-bin/gitweb.cgi?p=geeqie.git;a=commitdiff_plain;h=d6c0d12ea220cbc39f4afbab8e0b6ebf49c34254 Fix clang-tidy: readability-non-const-parameter The change suggested for exiv2.cc fails on further checks. --- diff --git a/src/exiv2.cc b/src/exiv2.cc index b41db975..e16d89b7 100644 --- a/src/exiv2.cc +++ b/src/exiv2.cc @@ -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(buf); }