From 6d180ce9b3e0ba50e1c4e8585e4a86567badddd6 Mon Sep 17 00:00:00 2001 From: François Revel Date: Mon, 9 May 2011 16:23:31 +0000 Subject: Use named initializers. svn path=/trunk/netsurf/; revision=12343 --- cocoa/apple_image.m | 22 +++++++--------------- 1 file changed, 7 insertions(+), 15 deletions(-) diff --git a/cocoa/apple_image.m b/cocoa/apple_image.m index bb2d17d01..80512948e 100644 --- a/cocoa/apple_image.m +++ b/cocoa/apple_image.m @@ -46,21 +46,13 @@ static nserror apple_image_clone(const struct content *old, static content_type apple_image_content_type(lwc_string *mime_type); static const content_handler apple_image_content_handler = { - apple_image_create, - NULL, - apple_image_convert, - NULL, - apple_image_destroy, - NULL, - NULL, - NULL, - apple_image_redraw, - NULL, - NULL, - apple_image_clone, - NULL, - apple_image_content_type, - false + .create = apple_image_create, + .data_complete = apple_image_convert, + .destroy = apple_image_destroy, + .redraw = apple_image_redraw, + .clone = apple_image_clone, + .type = apple_image_content_type, + .no_share = false }; static const char *apple_image_types[] = { -- cgit v1.2.3