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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user