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:
@@ -8,6 +8,7 @@
|
||||
#define __LIBCAMERA_DEVICE_ENUMERATOR_H__
|
||||
|
||||
#include <map>
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
@@ -34,7 +35,7 @@ private:
|
||||
class DeviceEnumerator
|
||||
{
|
||||
public:
|
||||
static DeviceEnumerator *create();
|
||||
static std::unique_ptr<DeviceEnumerator> create();
|
||||
|
||||
virtual ~DeviceEnumerator();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user