From e1a1050a39a607aee4c97c4558c0a637136f6b52 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Mon, 4 Oct 2010 11:27:16 +0100 Subject: [PATCH] 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. --- clutter/clutter-actor.c | 14 +++++++------- clutter/clutter-types.h | 4 ++-- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/clutter/clutter-actor.c b/clutter/clutter-actor.c index c20907584..a9d3aba6c 100644 --- a/clutter/clutter-actor.c +++ b/clutter/clutter-actor.c @@ -9678,19 +9678,19 @@ 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, - ClutterActorBox *result) +clutter_actor_box_union (const ClutterActorBox *a, + const ClutterActorBox *b, + ClutterActorBox *result) { g_return_if_fail (a != NULL); g_return_if_fail (b != NULL); diff --git a/clutter/clutter-types.h b/clutter/clutter-types.h index 17cfbcfd2..6854f2913 100644 --- a/clutter/clutter-types.h +++ b/clutter/clutter-types.h @@ -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); /**