diff options
author | Sven Weidauer <sven@5sw.de> | 2017-06-22 22:19:42 +0200 |
---|---|---|
committer | Sven Weidauer <sven@5sw.de> | 2017-06-22 22:19:42 +0200 |
commit | 42bf8a713d8ba06785407671cf5753694289c6b8 (patch) | |
tree | dda9dbe66dfba326154b269cf64ab9e263720e7c | |
parent | ef7b8258405761d44731cb4967c923a99bf72e37 (diff) | |
download | netsurf-42bf8a713d8ba06785407671cf5753694289c6b8.tar.gz netsurf-42bf8a713d8ba06785407671cf5753694289c6b8.tar.bz2 |
Fix nserror return values.
-rw-r--r-- | frontends/cocoa/bitmap.m | 2 | ||||
-rw-r--r-- | frontends/cocoa/gui.m | 2 | ||||
-rw-r--r-- | frontends/cocoa/plotter.m | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/frontends/cocoa/bitmap.m b/frontends/cocoa/bitmap.m index 554d5e0bf..089870e8a 100644 --- a/frontends/cocoa/bitmap.m +++ b/frontends/cocoa/bitmap.m @@ -242,7 +242,7 @@ static nserror bitmap_render(struct bitmap *bitmap, struct hlcache_handle *conte cocoa_bitmap_modified(bitmap); - return true; + return NSERROR_OK; } static struct gui_bitmap_table bitmap_table = { diff --git a/frontends/cocoa/gui.m b/frontends/cocoa/gui.m index 9c0ccac91..f564563f8 100644 --- a/frontends/cocoa/gui.m +++ b/frontends/cocoa/gui.m @@ -129,7 +129,7 @@ static bool gui_window_get_scroll(struct gui_window *g, int *sx, int *sy) static nserror gui_window_set_scroll(struct gui_window *g, const struct rect *rect) { [[(__bridge BrowserViewController *)g browserView] scrollPoint:cocoa_point(rect->x0, rect->y0)]; - return 0; + return NSERROR_OK; } /** diff --git a/frontends/cocoa/plotter.m b/frontends/cocoa/plotter.m index f02f7727b..1e01a47b0 100644 --- a/frontends/cocoa/plotter.m +++ b/frontends/cocoa/plotter.m @@ -74,7 +74,7 @@ static void cocoa_plot_path_set_stroke_pattern(NSBezierPath *path, const plot_st static nserror plot_line(const struct redraw_context *ctx, const plot_style_t *pstyle, const struct rect *line) { if (pstyle->stroke_type == PLOT_OP_TYPE_NONE) - return true; + return NSERROR_OK; [NSGraphicsContext saveGraphicsState]; [NSBezierPath clipRect:cocoa_plot_clip_rect]; |