mirror of
https://github.com/aaru-dps/libaaruformat.git
synced 2025-12-16 19:24:40 +00:00
Add const qualifiers to function parameters and local variables for improved type safety
This commit is contained in:
@@ -28,9 +28,9 @@
|
||||
|
||||
void draw_progress_bar(int row, int percent)
|
||||
{
|
||||
int width = tb_width() / 2;
|
||||
int bar_width = width - 4; // leave space for borders
|
||||
int filled = (bar_width * percent) / 100;
|
||||
const int width = tb_width() / 2;
|
||||
const int bar_width = width - 4; // leave space for borders
|
||||
const int filled = (bar_width * percent) / 100;
|
||||
|
||||
// Draw progress bar outline
|
||||
tb_printf(2, row, TB_YELLOW | TB_BOLD, TB_BLUE, "[");
|
||||
|
||||
Reference in New Issue
Block a user