Pass self as immutable where possible

This commit is contained in:
Isaac Freund
2020-03-29 15:58:04 +02:00
parent 9d0a41c0d2
commit f5304237b5
6 changed files with 15 additions and 15 deletions

View File

@ -107,7 +107,7 @@ pub const Output = struct {
_ = c.wlr_output_commit(output.wlr_output);
}
fn renderView(self: *Self, view: *View, now: *c.struct_timespec) void {
fn renderView(self: Self, view: *View, now: *c.struct_timespec) void {
// If we have a stashed buffer, we are in the middle of a transaction
// and need to render that buffer until the transaction is complete.
if (view.stashed_buffer) |buffer| {