From 1ec7072827931ac8a5ec7cf46292ff9510d10249 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Mon, 27 Sep 2021 00:06:28 +0300 Subject: 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 Reviewed-by: Paul Elder Reviewed-by: Kieran Bingham --- Documentation/guides/application-developer.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Documentation') 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; + static std::shared_ptr 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. -- cgit v1.2.1