aboutsummaryrefslogtreecommitdiff
path: root/src/root.zig
diff options
context:
space:
mode:
authorIsaac Freund <ifreund@ifreund.xyz>2020-04-27 10:35:53 +0200
committerIsaac Freund <ifreund@ifreund.xyz>2020-04-27 10:35:53 +0200
commit2b0b32c030888f74c7ae4198a98f639143e8b6f0 (patch)
treecba57c0f5d59bf8ec0bf00875bcdcee57590e7c0 /src/root.zig
parent809b2eeee1d2eb1d62da19281849167e791b1ad9 (diff)
downloadriver-2b0b32c030888f74c7ae4198a98f639143e8b6f0.tar.gz
river-2b0b32c030888f74c7ae4198a98f639143e8b6f0.tar.xz
Simplify some code
Diffstat (limited to 'src/root.zig')
-rw-r--r--src/root.zig5
1 files changed, 2 insertions, 3 deletions
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();
}