refactor: make Buffer.get_vcs_id and Buffer.get_vcs_content const

This commit is contained in:
CJ van den Berg 2025-12-17 22:00:01 +01:00
parent 6dba3609af
commit d08749123f
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9

View file

@ -1235,7 +1235,7 @@ pub fn set_vcs_id(self: *Self, vcs_id: []const u8) error{OutOfMemory}!bool {
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;
}
@ -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;
}