17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-10-17 06:19:19 +02:00

refactor(sonar): rely on class template argument deduction (cpp:S6012)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
jerrrrycho
2026-10-10 16:37:55 +02:00
parent 89583b2569
commit 7c0f81fb30
7 changed files with 12 additions and 12 deletions

View File

@@ -180,7 +180,7 @@ void ui::cameraview_panel::record_func()
while (record_state == RUNNING) {
if (bufpos == frame_size)
{
std::unique_lock<std::mutex> lock(mutex);
std::unique_lock lock(mutex);
auto r = notify_var.wait_for(lock, std::chrono::milliseconds(50), [this, last_cnt]{return last_cnt != frame_cnt;});
last_cnt = frame_cnt;
if (!image_ptr || !r)