From 83f9e707eba500d39c12b8078948b932706cdab2 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Mon, 9 May 2011 15:32:34 +0000 Subject: refactor content handler initilisation to use named initialisors svn path=/trunk/netsurf/; revision=12341 --- image/bmp.c | 22 +++++++--------------- 1 file changed, 7 insertions(+), 15 deletions(-) (limited to 'image/bmp.c') diff --git a/image/bmp.c b/image/bmp.c index 9e1326e62..b40ab7e8c 100644 --- a/image/bmp.c +++ b/image/bmp.c @@ -272,21 +272,13 @@ static content_type nsbmp_content_type(lwc_string *mime_type) static const content_handler nsbmp_content_handler = { - nsbmp_create, - NULL, - nsbmp_convert, - NULL, - nsbmp_destroy, - NULL, - NULL, - NULL, - nsbmp_redraw, - NULL, - NULL, - nsbmp_clone, - NULL, - nsbmp_content_type, - false + .create = nsbmp_create, + .data_complete = nsbmp_convert, + .destroy = nsbmp_destroy, + .redraw = nsbmp_redraw, + .clone = nsbmp_clone, + .type = nsbmp_content_type, + .no_share = false, }; nserror nsbmp_init(void) -- cgit v1.2.3