libcamera: device_enumerator: Don't mark the search() function as const
While the DeviceEnumerator::search() function doesn't modify the instance directly, it returns a non-const pointer to a MediaEntity that is owned by the DeviceEnumerator instance. This breaks the const semantics. Don't mark the function as const. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
This commit is contained in:
@@ -41,7 +41,7 @@ public:
|
||||
virtual int init() = 0;
|
||||
virtual int enumerate() = 0;
|
||||
|
||||
MediaDevice *search(const DeviceMatch &dm) const;
|
||||
MediaDevice *search(const DeviceMatch &dm);
|
||||
|
||||
protected:
|
||||
int addDevice(const std::string &devnode);
|
||||
|
||||
Reference in New Issue
Block a user