mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-04 23:28:07 +02:00
Add const qualifier to cairo_path_t* parameter of cairo_append_path
This commit is contained in:
parent
10920c1326
commit
e5bd21136c
4 changed files with 8 additions and 8 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue