talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit 39a33a6e1e95cab7b804257fdab4501d1b657699
parent 7ccd621021bb90f177021312ff4a55ce66bd2784
Author: wwp <subscript@free.fr>
Date:   Wed,  2 Oct 2019 12:08:20 +0200

Get rid of a hardcoded define when the enum size can be automatically
handled.

Diffstat:
Msrc/mimeview.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/mimeview.c b/src/mimeview.c @@ -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,