1
0
Fork 0

mtk: Mark mtk_rectangle_to_graphene_rect in-variable as const

To silence occasional compiler warnings.

Fixes: a93471eb90 ("mtk: Move Rectangle.to_graphene_rect from Meta")
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3474>
This commit is contained in:
Robert Mader 2023-12-28 12:19:05 +01:00
parent 3a94822e75
commit a4181a6730
2 changed files with 2 additions and 2 deletions

View file

@ -286,7 +286,7 @@ mtk_rectangle_contains_rect (const MtkRectangle *outer_rect,
* Returns: Return a graphene_rect_t created from `rect`
*/
graphene_rect_t
mtk_rectangle_to_graphene_rect (MtkRectangle *rect)
mtk_rectangle_to_graphene_rect (const MtkRectangle *rect)
{
return (graphene_rect_t) {
.origin = {

View file

@ -117,7 +117,7 @@ gboolean mtk_rectangle_contains_rect (const MtkRectangle *outer_rect,
const MtkRectangle *inner_rect);
MTK_EXPORT
graphene_rect_t mtk_rectangle_to_graphene_rect (MtkRectangle *rect);
graphene_rect_t mtk_rectangle_to_graphene_rect (const MtkRectangle *rect);
MTK_EXPORT
void mtk_rectangle_from_graphene_rect (const graphene_rect_t *rect,