diff options
author | Barnabás Pőcze <barnabas.pocze@ideasonboard.com> | 2024-12-09 17:09:11 +0100 |
---|---|---|
committer | Barnabás Pőcze <barnabas.pocze@ideasonboard.com> | 2025-05-02 17:25:30 +0200 |
commit | 28d2d4f43c699aa54d1209e21a1af29283379096 (patch) | |
tree | 14d1d4d112e1e724d383e36b79f10bc63f8f5fd8 | |
parent | dd2ddea8bf56a9e40a1803f59a71ab496910a73c (diff) |
Documentation: guides: pipeline-handler: Fix configuration creation
`PipelineHandler::generateConfiguration()` returns a `std::unique_ptr`.
Signed-off-by: Barnabás Pőcze <barnabas.pocze@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
-rw-r--r-- | Documentation/guides/pipeline-handler.rst | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Documentation/guides/pipeline-handler.rst b/Documentation/guides/pipeline-handler.rst index 7d5fd8ae..eb6a0be9 100644 --- a/Documentation/guides/pipeline-handler.rst +++ b/Documentation/guides/pipeline-handler.rst @@ -799,8 +799,7 @@ derived class, and assign it to a base class pointer. .. code-block:: cpp - VividCameraData *data = cameraData(camera); - CameraConfiguration *config = new VividCameraConfiguration(); + auto config = std::make_unique<VividCameraConfiguration>(); A ``CameraConfiguration`` is specific to each pipeline, so you can only create it from the pipeline handler code path. Applications can also generate an empty |