17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-10-26 18:14:55 +01:00

refactor(sonar): use auto where the type is spelled out on the right (cpp:S5827)

This commit is contained in:
jerrrrycho
2026-10-10 15:52:25 +02:00
parent f8c6e358bd
commit 413009e59e
19 changed files with 39 additions and 39 deletions

View File

@@ -122,8 +122,8 @@ void ui::cameraview_panel::capture_func()
piped_proc proc(cmdline);
size_t frame_size = Global.extcam_res.x * Global.extcam_res.y * 3;
uint8_t *read_buffer = new uint8_t[frame_size];
uint8_t *active_buffer = new uint8_t[frame_size];
auto read_buffer = new uint8_t[frame_size];
auto active_buffer = new uint8_t[frame_size];
size_t bufpos = 0;
@@ -172,7 +172,7 @@ void ui::cameraview_panel::record_func()
piped_proc proc(cmdline, true);
size_t frame_size = Global.extcam_res.x * Global.extcam_res.y * 3;
uint8_t *read_buffer = new uint8_t[frame_size];
auto read_buffer = new uint8_t[frame_size];
uint32_t last_cnt = 0;
size_t bufpos = frame_size;