refactor: make Buffer.get_vcs_id and Buffer.get_vcs_content const
This commit is contained in:
parent
6dba3609af
commit
d08749123f
1 changed files with 2 additions and 2 deletions
|
|
@ -1235,7 +1235,7 @@ pub fn set_vcs_id(self: *Self, vcs_id: []const u8) error{OutOfMemory}!bool {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn get_vcs_id(self: *Self) ?[]const u8 {
|
pub fn get_vcs_id(self: *const Self) ?[]const u8 {
|
||||||
return self.vcs_id;
|
return self.vcs_id;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1257,7 +1257,7 @@ pub fn clear_vcs_content(self: *Self) void {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn get_vcs_content(self: *Self) ?[]const u8 {
|
pub fn get_vcs_content(self: *const Self) ?[]const u8 {
|
||||||
return if (self.vcs_content) |*buf| buf.items else null;
|
return if (self.vcs_content) |*buf| buf.items else null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue