mirror of
https://github.com/labwc/labwc.git
synced 2025-11-06 13:29:58 -05:00
common: Add znew/znew_n() macros
This commit is contained in:
parent
da57483961
commit
a54d378e6c
26 changed files with 47 additions and 47 deletions
|
|
@ -46,8 +46,7 @@ struct scaled_font_buffer *
|
|||
scaled_font_buffer_create(struct wlr_scene_tree *parent)
|
||||
{
|
||||
assert(parent);
|
||||
struct scaled_font_buffer *self = xzalloc(sizeof(*self));
|
||||
|
||||
struct scaled_font_buffer *self = znew(*self);
|
||||
struct scaled_scene_buffer *scaled_buffer
|
||||
= scaled_scene_buffer_create(parent, &impl);
|
||||
if (!scaled_buffer) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue