mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-03-07 04:34:31 -05:00
treewide: make type-check helpers take const pointers
This commit is contained in:
parent
3336d28813
commit
14b3c96c1e
26 changed files with 38 additions and 38 deletions
|
|
@ -12,7 +12,7 @@
|
|||
|
||||
static const struct wlr_renderer_impl renderer_impl;
|
||||
|
||||
bool wlr_renderer_is_pixman(struct wlr_renderer *wlr_renderer) {
|
||||
bool wlr_renderer_is_pixman(const struct wlr_renderer *wlr_renderer) {
|
||||
return wlr_renderer->impl == &renderer_impl;
|
||||
}
|
||||
|
||||
|
|
@ -69,7 +69,7 @@ static struct wlr_pixman_buffer *get_buffer(
|
|||
|
||||
static const struct wlr_texture_impl texture_impl;
|
||||
|
||||
bool wlr_texture_is_pixman(struct wlr_texture *texture) {
|
||||
bool wlr_texture_is_pixman(const struct wlr_texture *texture) {
|
||||
return texture->impl == &texture_impl;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue