Documentation: application-developer: Make global variable static

The global "camera" variable isn't accessed outside of its compilation
unit. Make it static.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Paul Elder <paul.elder@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
Laurent Pinchart
2021-09-27 00:06:28 +03:00
parent 957c5d534b
commit 1ec7072827

View File

@@ -58,7 +58,7 @@ variable for the camera to support the event call back later:
.. code:: cpp
std::shared_ptr<Camera> camera;
static std::shared_ptr<Camera> camera;
Create a Camera Manager instance at the beginning of the main function, and then
start it. An application must only create a single Camera Manager instance.