mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-23 16:45:07 +03:00
libcamera: base: extensible: Pass private pointer as unique_ptr<>
The Extensible constructor takes a pointer to a Private instance, whose lifetime it then manages. Make this explicit in the API by passing the pointer as a std::unique_ptr<Private>. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
This commit is contained in:
parent
5420e359f2
commit
e77c8951e9
7 changed files with 16 additions and 8 deletions
|
@ -87,7 +87,7 @@ public:
|
|||
Extensible *const o_;
|
||||
};
|
||||
|
||||
Extensible(Private *d);
|
||||
Extensible(std::unique_ptr<Private> d);
|
||||
|
||||
protected:
|
||||
template<typename T>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue