mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-24 17:15:07 +03:00
libcamera: camera_manager: Turn enumerator into a unique_ptr<>
Convey the fact that the CameraManager class owns the DeviceEnumerator instance it creates by using std::unique_ptr<> to store the pointer. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
This commit is contained in:
parent
a2f095947f
commit
62eae99ed2
4 changed files with 10 additions and 13 deletions
|
@ -7,6 +7,7 @@
|
|||
#ifndef __LIBCAMERA_CAMERA_MANAGER_H__
|
||||
#define __LIBCAMERA_CAMERA_MANAGER_H__
|
||||
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
|
@ -37,7 +38,7 @@ private:
|
|||
void operator=(const CameraManager &) = delete;
|
||||
~CameraManager();
|
||||
|
||||
DeviceEnumerator *enumerator_;
|
||||
std::unique_ptr<DeviceEnumerator> enumerator_;
|
||||
std::vector<PipelineHandler *> pipes_;
|
||||
|
||||
EventDispatcher *dispatcher_;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue