treewide: make type-check helpers take const pointers

This commit is contained in:
YaoBing Xiao 2026-03-06 15:59:18 +08:00
parent 3336d28813
commit 14b3c96c1e
26 changed files with 38 additions and 38 deletions

View file

@ -46,7 +46,7 @@ static bool default_debug = true;
static const struct wlr_renderer_impl renderer_impl;
bool wlr_renderer_is_vk(struct wlr_renderer *wlr_renderer) {
bool wlr_renderer_is_vk(const struct wlr_renderer *wlr_renderer) {
return wlr_renderer->impl == &renderer_impl;
}

View file

@ -15,7 +15,7 @@
static const struct wlr_texture_impl texture_impl;
bool wlr_texture_is_vk(struct wlr_texture *wlr_texture) {
bool wlr_texture_is_vk(const struct wlr_texture *wlr_texture) {
return wlr_texture->impl == &texture_impl;
}