From 42c2ff54b657babf59eacdb3291e5867a511489c Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Thu, 2 May 2019 19:01:06 +0200 Subject: video: simplify --- video/camera.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/video/camera.cpp b/video/camera.cpp index b5cf3120..42320402 100644 --- a/video/camera.cpp +++ b/video/camera.cpp @@ -56,7 +56,7 @@ std::unique_ptr make_camera(const QString& name) for (auto& camera : metadata) for (const QString& name_ : camera->camera_names()) - if (auto ret = camera->make_camera(name_); ret) + if (auto ret = camera->make_camera(name_)) return ret; return nullptr; -- cgit v1.2.3