Add const qualifier to cairo_path_t* parameter of cairo_append_path

This commit is contained in:
Carl Worth 2006-11-20 09:32:00 -08:00
parent 10920c1326
commit e5bd21136c
4 changed files with 8 additions and 8 deletions

View file

@ -52,7 +52,7 @@ cairo_private cairo_path_t *
_cairo_path_data_create_in_error (cairo_status_t status);
cairo_private cairo_status_t
_cairo_path_data_append_to_context (cairo_path_t *path,
cairo_t *cr);
_cairo_path_data_append_to_context (const cairo_path_t *path,
cairo_t *cr);
#endif /* CAIRO_PATH_DATA_PRIVATE_H */

View file

@ -454,8 +454,8 @@ _cairo_path_data_create_flat (cairo_path_fixed_t *path,
* is invalid, and CAIRO_STATUS_SUCCESS otherwise.
**/
cairo_status_t
_cairo_path_data_append_to_context (cairo_path_t *path,
cairo_t *cr)
_cairo_path_data_append_to_context (const cairo_path_t *path,
cairo_t *cr)
{
int i;
cairo_path_data_t *p;

View file

@ -3080,8 +3080,8 @@ cairo_copy_path_flat (cairo_t *cr)
* initialized to %CAIRO_STATUS_SUCCESS.
**/
void
cairo_append_path (cairo_t *cr,
cairo_path_t *path)
cairo_append_path (cairo_t *cr,
const cairo_path_t *path)
{
if (cr->status)
return;

View file

@ -1237,8 +1237,8 @@ cairo_public cairo_path_t *
cairo_copy_path_flat (cairo_t *cr);
cairo_public void
cairo_append_path (cairo_t *cr,
cairo_path_t *path);
cairo_append_path (cairo_t *cr,
const cairo_path_t *path);
cairo_public void
cairo_path_destroy (cairo_path_t *path);