Cleanup: use const pointers where possible

This commit is contained in:
Campbell Barton
2024-04-16 12:27:47 +10:00
parent 90f1d1cc61
commit 20b0805213
5 changed files with 6 additions and 6 deletions

View File

@@ -233,7 +233,7 @@ size_t memory_usage_block_num()
/* Count the number of active blocks. */
int64_t blocks_num = global.blocks_num_outside_locals;
for (Local *local : global.locals) {
for (const Local *local : global.locals) {
blocks_num += local->blocks_num;
}
return size_t(blocks_num);
@@ -246,7 +246,7 @@ size_t memory_usage_current()
/* Count the memory that's currently in use. */
int64_t mem_in_use = global.mem_in_use_outside_locals;
for (Local *local : global.locals) {
for (const Local *local : global.locals) {
mem_in_use += local->mem_in_use;
}
return size_t(mem_in_use);