diff options
| author | mitaclaw <140017135+mitaclaw@users.noreply.github.com> | 2024-08-22 19:24:49 -0700 |
|---|---|---|
| committer | mitaclaw <140017135+mitaclaw@users.noreply.github.com> | 2024-10-07 15:34:56 -0700 |
| commit | b6ec8ddc206ea8da474348e801758051d6470b79 (patch) | |
| tree | f63cd81aa5e9aef4fcfc414a447374a68eb83fa6 /Source/DSPSpy | |
| parent | 7c96762f5f4cf5d9952fbf4093a4173f0ced989a (diff) | |
Simplify `std::fill` with `std::fill_n`
Diffstat (limited to 'Source/DSPSpy')
| -rw-r--r-- | Source/DSPSpy/ConsoleHelper.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/DSPSpy/ConsoleHelper.h b/Source/DSPSpy/ConsoleHelper.h index 791b94c636..90aea55f9f 100644 --- a/Source/DSPSpy/ConsoleHelper.h +++ b/Source/DSPSpy/ConsoleHelper.h @@ -60,7 +60,7 @@ inline void CON_BlankRow(const int y) int columns = 0, rows = 0; CON_GetMetrics(&columns, &rows); char blank[columns]; - std::fill(blank, blank + columns, ' '); + std::fill_n(blank, columns, ' '); blank[columns - 1] = '\0'; CON_Printf(0, y, "%s", blank); } |
