From 2b0b32c030888f74c7ae4198a98f639143e8b6f0 Mon Sep 17 00:00:00 2001 From: Isaac Freund Date: Mon, 27 Apr 2020 10:35:53 +0200 Subject: Simplify some code --- src/root.zig | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/root.zig') diff --git a/src/root.zig b/src/root.zig index de88466..eaaf5d8 100644 --- a/src/root.zig +++ b/src/root.zig @@ -86,9 +86,8 @@ pub const Root = struct { /// Arrange all outputs and then a transaction. pub fn arrange(self: *Self) void { var it = self.outputs.first; - while (it) |node| : (it = node.next) { - const output = &node.data; - output.arrange(); + while (it) |output_node| : (it = output_node.next) { + output_node.data.arrangeViews(); } self.startTransaction(); } -- cgit v1.2.3