Get rid of a hardcoded define when the enum size can be automatically
authorwwp <subscript@free.fr>
Wed, 2 Oct 2019 10:08:20 +0000 (12:08 +0200)
committerwwp <subscript@free.fr>
Wed, 2 Oct 2019 10:08:20 +0000 (12:08 +0200)
handled.

src/mimeview.c

index fe840f5..edc768d 100644 (file)
@@ -63,9 +63,10 @@ typedef enum
        COL_SIZE     = 1,
        COL_NAME     = 2,
        COL_DATA     = 3,
+       N_MIMEVIEW_COLUMNS
 } MimeViewColumnPos;
 
-#define N_MIMEVIEW_COLS        4
+#define N_MIMEVIEW_COLS        (N_MIMEVIEW_COLUMNS)
 
 static void mimeview_set_multipart_tree                (MimeView       *mimeview,
                                                 MimeInfo       *mimeinfo,