refactor: make Widget.get method const

This commit is contained in:
CJ van den Berg 2026-01-06 19:22:24 +01:00
parent 902fc0ab75
commit c1200ac5bd
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
5 changed files with 12 additions and 13 deletions

View file

@ -115,7 +115,7 @@ pub fn addP(self: *Self, w_: Widget) !*Widget {
return &w.widget;
}
pub fn get(self: *Self, name_: []const u8) ?*Widget {
pub fn get(self: *const Self, name_: []const u8) ?*const Widget {
for (self.widgets.items) |*w|
if (w.widget.get(name_)) |p|
return p;