summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFran├žois Revel <mmu_man@netsurf-browser.org>2011-05-09 16:23:31 +0000
committerFran├žois Revel <mmu_man@netsurf-browser.org>2011-05-09 16:23:31 +0000
commit6d180ce9b3e0ba50e1c4e8585e4a86567badddd6 (patch)
treeb934d564f6c745ffdc9acc34104467a7af864246
parente7986379f0d4e76f69bf45c6852becb1c47b94ff (diff)
downloadnetsurf-6d180ce9b3e0ba50e1c4e8585e4a86567badddd6.tar.gz
netsurf-6d180ce9b3e0ba50e1c4e8585e4a86567badddd6.tar.bz2
Use named initializers.
svn path=/trunk/netsurf/; revision=12343
-rw-r--r--cocoa/apple_image.m22
1 files 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[] = {