mirror of
https://github.com/brl/mutter.git
synced 2024-12-25 04:22:05 +00:00
actor-box: Constify arguments for union
The input arguments for clutter_actor_box_union() should be constified, since they will not be modified by the function.
This commit is contained in:
parent
45b6d7d47a
commit
e1a1050a39
@ -9678,18 +9678,18 @@ clutter_actor_box_clamp_to_pixel (ClutterActorBox *box)
|
||||
|
||||
/**
|
||||
* clutter_actor_box_union:
|
||||
* @a: (in): the first #ClutterActorBox
|
||||
* @a: (in): a second #ClutterActorBox
|
||||
* @result: (out): the #ClutterActorBox representing a union of @a and
|
||||
* @b
|
||||
* @a: (in) the first #ClutterActorBox
|
||||
* @b: (in): the second #ClutterActorBox
|
||||
* @result: (out): the #ClutterActorBox representing a union
|
||||
* of @a and @b
|
||||
*
|
||||
* Unions the two boxes @a and @b and stores the result in @result.
|
||||
*
|
||||
* Since: 1.4
|
||||
*/
|
||||
void
|
||||
clutter_actor_box_union (ClutterActorBox *a,
|
||||
ClutterActorBox *b,
|
||||
clutter_actor_box_union (const ClutterActorBox *a,
|
||||
const ClutterActorBox *b,
|
||||
ClutterActorBox *result)
|
||||
{
|
||||
g_return_if_fail (a != NULL);
|
||||
|
@ -185,8 +185,8 @@ void clutter_actor_box_interpolate (const ClutterActorBox *initial
|
||||
gdouble progress,
|
||||
ClutterActorBox *result);
|
||||
void clutter_actor_box_clamp_to_pixel (ClutterActorBox *box);
|
||||
void clutter_actor_box_union (ClutterActorBox *a,
|
||||
ClutterActorBox *b,
|
||||
void clutter_actor_box_union (const ClutterActorBox *a,
|
||||
const ClutterActorBox *b,
|
||||
ClutterActorBox *result);
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user