Some consting
This commit is contained in:
parent
6f5968eeb0
commit
e03aabd972
@ -33,7 +33,7 @@ clear_chars_in_line(CPUCell *cpu_cells, GPUCell *gpu_cells, index_type xnum, cha
|
||||
}
|
||||
|
||||
static inline index_type
|
||||
xlimit_for_line(Line *line) {
|
||||
xlimit_for_line(const Line *line) {
|
||||
index_type xlimit = line->xnum;
|
||||
if (BLANK_CHAR == 0) {
|
||||
while (xlimit > 0 && (line->cpu_cells[xlimit - 1].ch) == BLANK_CHAR) xlimit--;
|
||||
|
||||
@ -1734,7 +1734,7 @@ iteration_data(const Screen *self, Selection *sel, const bool rectangle) {
|
||||
}
|
||||
|
||||
static inline XRange
|
||||
xrange_for_iteration(IterationData *idata, index_type y, Line *line) {
|
||||
xrange_for_iteration(const IterationData *idata, const index_type y, const Line *line) {
|
||||
XRange ans = {.x_limit=xlimit_for_line(line)};
|
||||
if (y == idata->y) {
|
||||
ans.x_limit = MIN(idata->first.x_limit, ans.x_limit);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user