From 42bf8a713d8ba06785407671cf5753694289c6b8 Mon Sep 17 00:00:00 2001 From: Sven Weidauer Date: Thu, 22 Jun 2017 22:19:42 +0200 Subject: Fix nserror return values. --- frontends/cocoa/bitmap.m | 2 +- frontends/cocoa/gui.m | 2 +- 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]; -- cgit v1.2.3