From 2ae569dad2fee2b28fd093b8e0a7944a2cd6604b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Barnab=C3=A1s=20P=C5=91cze?= Date: Thu, 30 Jan 2025 07:47:15 +0000 Subject: Documentation: guides: application-developer: Fix variable shadowing MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The mentioned commit mistakenly introduced a new variable for storing the camera instead of just assigining to the global variable defined earlier in the tutorial. Fix that by making it an assignment. Bug: https://bugs.libcamera.org/show_bug.cgi?id=252 Fixes: e77a2751100e38 ("treewide: Query list of cameras just once") Signed-off-by: Barnabás Pőcze Reviewed-by: Kieran Bingham Reviewed-by: Laurent Pinchart --- Documentation/guides/application-developer.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/guides/application-developer.rst b/Documentation/guides/application-developer.rst index 25beb55d..f3798d17 100644 --- a/Documentation/guides/application-developer.rst +++ b/Documentation/guides/application-developer.rst @@ -128,7 +128,7 @@ available. std::string cameraId = cameras[0]->id(); - auto camera = cm->get(cameraId); + camera = cm->get(cameraId); /* * Note that `camera` may not compare equal to `cameras[0]`. * In fact, it might simply be a `nullptr`, as the particular -- cgit v1.2.1