summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Weidauer <sven@5sw.de>2017-06-22 20:19:42 (GMT)
committer Sven Weidauer <sven@5sw.de>2017-06-22 20:19:42 (GMT)
commit42bf8a713d8ba06785407671cf5753694289c6b8 (patch)
treedda9dbe66dfba326154b269cf64ab9e263720e7c
parentef7b8258405761d44731cb4967c923a99bf72e37 (diff)
downloadnetsurf-42bf8a713d8ba06785407671cf5753694289c6b8.tar.gz
netsurf-42bf8a713d8ba06785407671cf5753694289c6b8.tar.bz2
Fix nserror return values.
-rw-r--r--frontends/cocoa/bitmap.m2
-rw-r--r--frontends/cocoa/gui.m2
-rw-r--r--frontends/cocoa/plotter.m2
3 files changed, 3 insertions, 3 deletions
diff --git a/frontends/cocoa/bitmap.m b/frontends/cocoa/bitmap.m
index 554d5e0..089870e 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 9c0ccac..f564563 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 f02f772..1e01a47 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];