mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-19 18:35:07 +03:00
libcamera: Drop argument from LIBCAMERA_DECLARE_PRIVATE
The LIBCAMERA_DECLARE_PRIVATE() macro, used by the library classes that inherit from libcamera::Extensible in order to implement the PIMPL pattern, expands to: public: \ class Private; \ friend class Private; The 'klass' argument is not used and it might confuse developers as it might hint that the class that defines the pattern's implementation can be freely named, while it is actually hardcoded to 'Private'. Drop the argument from the macro definition. Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Reviewed-by: Hanlin Chen <hanlinchen@google.com> Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
This commit is contained in:
parent
d40430116b
commit
1fca6228fe
5 changed files with 6 additions and 8 deletions
|
@ -14,7 +14,7 @@
|
|||
|
||||
class CameraBuffer final : public libcamera::Extensible
|
||||
{
|
||||
LIBCAMERA_DECLARE_PRIVATE(CameraBuffer)
|
||||
LIBCAMERA_DECLARE_PRIVATE()
|
||||
|
||||
public:
|
||||
CameraBuffer(buffer_handle_t camera3Buffer, int flags);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue