bikeshed: rename util.allocator to util.gpa

This is less typing and more clear. A definite win.
This commit is contained in:
Isaac Freund
2020-06-19 14:31:53 +02:00
parent aae89356a1
commit 12d34d4ded
18 changed files with 47 additions and 47 deletions

View File

@ -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);
}