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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user