bikeshed: rename util.allocator to util.gpa
This is less typing and more clear. A definite win.
This commit is contained in:
@ -67,7 +67,7 @@ fn handleDestroy(listener: ?*c.wl_listener, data: ?*c_void) callconv(.C) void {
|
||||
c.wl_list_remove(&self.listen_destroy.link);
|
||||
c.wl_list_remove(&self.listen_new_popup.link);
|
||||
|
||||
util.allocator.destroy(self);
|
||||
util.gpa.destroy(self);
|
||||
}
|
||||
|
||||
/// Called when a new xdg popup is requested by the client
|
||||
@ -76,6 +76,6 @@ fn handleNewPopup(listener: ?*c.wl_listener, data: ?*c_void) callconv(.C) void {
|
||||
const wlr_xdg_popup = util.voidCast(c.wlr_xdg_popup, data.?);
|
||||
|
||||
// This will free itself on destroy
|
||||
var xdg_popup = util.allocator.create(Self) catch unreachable;
|
||||
var xdg_popup = util.gpa.create(Self) catch unreachable;
|
||||
xdg_popup.init(self.output, self.parent_box, wlr_xdg_popup);
|
||||
}
|
||||
|
Reference in New Issue
Block a user