[libcamera-devel] [PATCH v2 1/3] Documentation: Add the missing const to the example code
Daniel Semkowicz
dse at thaumatec.com
Fri Jun 17 16:35:47 CEST 2022
Request::BufferMap key type is now const
Signed-off-by: Daniel Semkowicz <dse at thaumatec.com>
---
Documentation/guides/application-developer.rst | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Documentation/guides/application-developer.rst b/Documentation/guides/application-developer.rst
index 8d12a208..6ab8b7e5 100644
--- a/Documentation/guides/application-developer.rst
+++ b/Documentation/guides/application-developer.rst
@@ -410,7 +410,7 @@ images.
.. code:: cpp
- const std::map<Stream *, FrameBuffer *> &buffers = request->buffers();
+ const std::map<const Stream *, FrameBuffer *> &buffers = request->buffers();
Iterating through the map allows applications to inspect each completed buffer
in this request, and access the metadata associated to each frame.
@@ -518,7 +518,7 @@ and queue all the previously created requests.
camera->start();
for (std::unique_ptr<Request> &request : requests)
- camera->queueRequest(request.get());
+ camera->queueRequest(request.get());
Start an event loop
~~~~~~~~~~~~~~~~~~~
--
2.34.1
More information about the libcamera-devel
mailing list