From e77c8951e9ff91bf2bacf81791a882ccb3cee30b Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Wed, 11 Aug 2021 19:34:44 +0300 Subject: 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. Signed-off-by: Laurent Pinchart Reviewed-by: Kieran Bingham Reviewed-by: Jacopo Mondi --- include/libcamera/base/class.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/libcamera/base/class.h b/include/libcamera/base/class.h index a5946836..9a82d614 100644 --- a/include/libcamera/base/class.h +++ b/include/libcamera/base/class.h @@ -87,7 +87,7 @@ public: Extensible *const o_; }; - Extensible(Private *d); + Extensible(std::unique_ptr d); protected: template -- cgit v1.2.1