summaryrefslogtreecommitdiff
path: root/Documentation/guides/application-developer.rst
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2021-09-27 00:06:28 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2021-09-27 23:41:18 +0300
commit1ec7072827931ac8a5ec7cf46292ff9510d10249 (patch)
tree81cad43f3ddb71fdc2e99e4e8a4a880b54a9010a /Documentation/guides/application-developer.rst
parent957c5d534b42e05520de82f27b2204fa864d511a (diff)
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>
Diffstat (limited to 'Documentation/guides/application-developer.rst')
-rw-r--r--Documentation/guides/application-developer.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/guides/application-developer.rst b/Documentation/guides/application-developer.rst
index ae28c96b..3de13060 100644
--- a/Documentation/guides/application-developer.rst
+++ b/Documentation/guides/application-developer.rst
@@ -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.