diff options
author | Vincent Sanders <vince@kyllikki.org> | 2017-02-24 14:02:31 +0000 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2017-02-24 14:02:31 +0000 |
commit | d9a2c7b9c155256a322e66ce3aec6dfe0147941c (patch) | |
tree | 5a8b8eaf62486c02aa33d1b8a5f71b03b7c056bb /frontends/cocoa | |
parent | 07c8ea22a5b1d8e10db20a24127332da8c7e2b72 (diff) | |
download | netsurf-d9a2c7b9c155256a322e66ce3aec6dfe0147941c.tar.gz netsurf-d9a2c7b9c155256a322e66ce3aec6dfe0147941c.tar.bz2 |
fix some doxygen errors
Diffstat (limited to 'frontends/cocoa')
-rw-r--r-- | frontends/cocoa/bitmap.m | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/frontends/cocoa/bitmap.m b/frontends/cocoa/bitmap.m index 1ab8c3e2f..fe611f118 100644 --- a/frontends/cocoa/bitmap.m +++ b/frontends/cocoa/bitmap.m @@ -41,7 +41,16 @@ #define ALPHA_OFFSET (3) static CGImageRef cocoa_prepare_bitmap( void *bitmap ); -static NSMapTable *cocoa_get_bitmap_cache( void ); +//static NSMapTable *cocoa_get_bitmap_cache( void ); + +static inline NSMapTable *cocoa_get_bitmap_cache( void ) +{ + static NSMapTable *cache = nil; + if (cache == nil) { + cache = NSCreateMapTable( NSNonOwnedPointerMapKeyCallBacks, NSNonOwnedPointerMapValueCallBacks, 0 ); + } + return cache; +} static int bitmap_get_width(void *bitmap) { @@ -179,14 +188,6 @@ CGImageRef cocoa_get_cgimage( void *bitmap ) return result; } -static inline NSMapTable *cocoa_get_bitmap_cache( void ) -{ - static NSMapTable *cache = nil; - if (cache == nil) { - cache = NSCreateMapTable( NSNonOwnedPointerMapKeyCallBacks, NSNonOwnedPointerMapValueCallBacks, 0 ); - } - return cache; -} static CGImageRef cocoa_prepare_bitmap( void *bitmap ) { |