From a43ea7ff70e332ffe6b852a0aaeeb9aa877663cf Mon Sep 17 00:00:00 2001 From: Stanislaw Gruszka Date: Thu, 31 Oct 2024 12:02:56 +0100 Subject: qcam: Use pointer when choosing camera In order to remove redundant camera ID lookups and comparisons switch to pointer-based checks when choosing and switching cameras. Co-developed-by: Laurent Pinchart Signed-off-by: Laurent Pinchart Signed-off-by: Stanislaw Gruszka Tested-by: Kieran Bingham Reviewed-by: Kieran Bingham Signed-off-by: Kieran Bingham --- src/apps/qcam/main_window.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/apps/qcam/main_window.h') diff --git a/src/apps/qcam/main_window.h b/src/apps/qcam/main_window.h index 4cead734..81fcf915 100644 --- a/src/apps/qcam/main_window.h +++ b/src/apps/qcam/main_window.h @@ -73,7 +73,7 @@ private Q_SLOTS: private: int createToolbars(); - std::string chooseCamera(); + std::shared_ptr chooseCamera(); int openCamera(); int startCapture(); -- cgit v1.2.1