mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-04-04 07:15:59 -04:00
render/color: use variable instead of type in sizeof()
Conforms to the wlroots code style.
This commit is contained in:
parent
d421538b4a
commit
9b97e2607d
2 changed files with 2 additions and 2 deletions
|
|
@ -30,7 +30,7 @@ void wlr_color_transform_init(struct wlr_color_transform *tr, enum wlr_color_tra
|
||||||
}
|
}
|
||||||
|
|
||||||
struct wlr_color_transform *wlr_color_transform_init_srgb(void) {
|
struct wlr_color_transform *wlr_color_transform_init_srgb(void) {
|
||||||
struct wlr_color_transform *tx = calloc(1, sizeof(struct wlr_color_transform));
|
struct wlr_color_transform *tx = calloc(1, sizeof(*tx));
|
||||||
if (!tx) {
|
if (!tx) {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -95,7 +95,7 @@ struct wlr_color_transform *wlr_color_transform_init_linear_to_icc(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
tx = calloc(1, sizeof(struct wlr_color_transform_lut3d));
|
tx = calloc(1, sizeof(*tx));
|
||||||
if (!tx) {
|
if (!tx) {
|
||||||
goto out_lcms_tr;
|
goto out_lcms_tr;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue