diff options
author | Pekka Paalanen <pekka.paalanen@collabora.com> | 2020-11-12 17:17:20 +0200 |
---|---|---|
committer | Pekka Paalanen <pekka.paalanen@collabora.com> | 2020-12-09 14:06:43 +0200 |
commit | ee60752ebdf4151207bdfb40fc4d9d6a4658f2ae (patch) | |
tree | 6a36620d395bdd47b30610425e962ac069b2eed5 | |
parent | a3bfa1b27ddc3b4f1fbc232ac3a566ab9ffaa2fa (diff) | |
download | weston-ee60752ebdf4151207bdfb40fc4d9d6a4658f2ae.tar.gz |
tests: constify fill_image_with_color()
Const has documentary value saying the code will not modify the
parameter contents. Everything that can be const, should be const.
Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
-rw-r--r-- | tests/weston-test-client-helper.c | 2 | ||||
-rw-r--r-- | tests/weston-test-client-helper.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/weston-test-client-helper.c b/tests/weston-test-client-helper.c index c9a9a55a..22136ce1 100644 --- a/tests/weston-test-client-helper.c +++ b/tests/weston-test-client-helper.c @@ -1867,7 +1867,7 @@ client_create_viewport(struct client *client) * \param color The color to use. */ void -fill_image_with_color(pixman_image_t *image, pixman_color_t *color) +fill_image_with_color(pixman_image_t *image, const pixman_color_t *color) { pixman_image_t *solid; int width; diff --git a/tests/weston-test-client-helper.h b/tests/weston-test-client-helper.h index 90ab3616..bdd685bd 100644 --- a/tests/weston-test-client-helper.h +++ b/tests/weston-test-client-helper.h @@ -280,7 +280,7 @@ struct wp_viewport * client_create_viewport(struct client *client); void -fill_image_with_color(pixman_image_t *image, pixman_color_t *color); +fill_image_with_color(pixman_image_t *image, const pixman_color_t *color); pixman_color_t * color_rgb888(pixman_color_t *tmp, uint8_t r, uint8_t g, uint8_t b); |