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>
This commit is contained in:
parent
dd2ddea8bf
commit
28d2d4f43c
1 changed files with 1 additions and 2 deletions
|
@ -799,8 +799,7 @@ derived class, and assign it to a base class pointer.
|
||||||
|
|
||||||
.. code-block:: cpp
|
.. code-block:: cpp
|
||||||
|
|
||||||
VividCameraData *data = cameraData(camera);
|
auto config = std::make_unique<VividCameraConfiguration>();
|
||||||
CameraConfiguration *config = new VividCameraConfiguration();
|
|
||||||
|
|
||||||
A ``CameraConfiguration`` is specific to each pipeline, so you can only create
|
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
|
it from the pipeline handler code path. Applications can also generate an empty
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue