clang-tidy: remove misleading const
authorRosen Penev <rosenp@gmail.com>
Thu, 29 Jun 2023 22:48:26 +0000 (15:48 -0700)
committerColin Clark <colin.clark@cclark.uk>
Sat, 8 Jul 2023 10:06:57 +0000 (11:06 +0100)
Signed-off-by: Rosen Penev <rosenp@gmail.com>
src/format-raw.cc
src/remote.cc
src/search.cc

index 0a8f2f4..ac78e20 100644 (file)
 struct FormatRawEntry {
        const gchar *extension;
        FormatRawMatchType magic_type;
-       const guint magic_offset;
+       guint magic_offset;
        gconstpointer magic_pattern;
-       const guint magic_length;
-       const FormatRawExifType exif_type;
+       guint magic_length;
+       FormatRawExifType exif_type;
        FormatRawExifParseFunc exif_func;
        const gchar *description;
        FormatRawParseFunc func_parse;
@@ -72,7 +72,7 @@ static FormatRawEntry format_raw_list[] = {
 struct FormatExifEntry {
        FormatExifMatchType header_type;
        gconstpointer header_pattern;
-       const guint header_length;
+       guint header_length;
        const gchar *description;
        FormatExifParseFunc func_parse;
 };
index dbd61e1..e0c2547 100644 (file)
@@ -1159,7 +1159,7 @@ static void gr_collection_list(const gchar *UNUSED(text), GIOChannel *channel, g
        g_string_free(out_string, TRUE);
 }
 
-static gboolean wait_cb(const gpointer data)
+static gboolean wait_cb(gpointer data)
 {
        gint position = GPOINTER_TO_INT(data);
        gint x = position >> 16;
index cb58691..2fb9342 100644 (file)
@@ -255,7 +255,7 @@ struct MatchFileData
 struct MatchList
 {
        const gchar *text;
-       const MatchType type;
+       MatchType type;
 };
 
 static const MatchList text_search_menu_path[] = {