refactor: make Widget.get method const
This commit is contained in:
parent
902fc0ab75
commit
c1200ac5bd
5 changed files with 12 additions and 13 deletions
|
|
@ -217,7 +217,7 @@ pub const TabBar = struct {
|
|||
self.plane = self.widget_list.plane;
|
||||
}
|
||||
|
||||
pub fn get(self: *Self, name: []const u8) ?*Widget {
|
||||
pub fn get(self: *const Self, name: []const u8) ?*const Widget {
|
||||
return self.widget_list_widget.get(name);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue