Originally: 2005-06-09 Carl Worth <cworth@cworth.org>

Rework occurrences of 'if (status == CAIRO_STATUS_SUCCESS)' to use 'if (status)' instead where trivial.
This commit is contained in:
Carl Worth 2005-06-10 12:46:49 +00:00
parent 31dcb954fe
commit 6cd484a4c0
4 changed files with 39 additions and 15 deletions

View file

@ -1,3 +1,17 @@
2005-06-10 Carl Worth <cworth@cworth.org>
Originally: 2005-06-09 Carl Worth <cworth@cworth.org>
* src/cairo-pdf-surface.c: (_cairo_pdf_surface_show_page):
* src/cairo-xcb-surface.c:
(_cairo_xcb_surface_acquire_source_image),
(_cairo_xcb_surface_acquire_dest_image):
* src/cairo-xlib-surface.c:
(_cairo_xlib_surface_acquire_source_image),
(_cairo_xlib_surface_acquire_dest_image): Rework occurrences
of 'if (status == CAIRO_STATUS_SUCCESS)' to use 'if (status)'
instead where trivial.
2005-06-10 Carl Worth <cworth@cworth.org>
* src/cairoint.h:

View file

@ -1798,10 +1798,12 @@ _cairo_pdf_surface_show_page (void *abstract_surface)
cairo_int_status_t status;
status = _cairo_pdf_document_add_page (document, surface);
if (status == CAIRO_STATUS_SUCCESS)
_cairo_pdf_surface_clear (surface);
if (status)
return status;
return status;
_cairo_pdf_surface_clear (surface);
return CAIRO_STATUS_SUCCESS;
}
static cairo_int_status_t

View file

@ -569,10 +569,12 @@ _cairo_xcb_surface_acquire_source_image (void *abstract_surfa
cairo_status_t status;
status = _get_image_surface (surface, NULL, &image, NULL);
if (status == CAIRO_STATUS_SUCCESS)
*image_out = image;
if (status)
return status;
return status;
*image_out = image;
return CAIRO_STATUS_SUCCESS;
}
static void
@ -595,10 +597,12 @@ _cairo_xcb_surface_acquire_dest_image (void *abstract_surface
cairo_status_t status;
status = _get_image_surface (surface, interest_rect, &image, image_rect_out);
if (status == CAIRO_STATUS_SUCCESS)
*image_out = image;
if (status)
return status;
return status;
*image_out = image;
return CAIRO_STATUS_SUCCESS;
}
static void

View file

@ -530,10 +530,12 @@ _cairo_xlib_surface_acquire_source_image (void *abstract_surf
cairo_status_t status;
status = _get_image_surface (surface, NULL, &image, NULL);
if (status == CAIRO_STATUS_SUCCESS)
*image_out = image;
if (status)
return status;
return status;
*image_out = image;
return CAIRO_STATUS_SUCCESS;
}
static void
@ -556,10 +558,12 @@ _cairo_xlib_surface_acquire_dest_image (void *abstract_surfac
cairo_status_t status;
status = _get_image_surface (surface, interest_rect, &image, image_rect_out);
if (status == CAIRO_STATUS_SUCCESS)
*image_out = image;
if (status)
return status;
return status;
*image_out = image;
return CAIRO_STATUS_SUCCESS;
}
static void