libcamera: Drop the LIBCAMERA_D_PTR macro in favour of the _d() function
Now that all Extensible classes expose a _d() function that performs appropriate casts, the LIBCAMERA_D_PTR brings no real additional value. Replace it with direct calls to the _d() function. 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:
@@ -49,16 +49,12 @@ public: \
|
||||
friend class klass; \
|
||||
using Public = klass;
|
||||
|
||||
#define LIBCAMERA_D_PTR() \
|
||||
_d();
|
||||
|
||||
#define LIBCAMERA_O_PTR() \
|
||||
_o<Public>();
|
||||
|
||||
#else
|
||||
#define LIBCAMERA_DECLARE_PRIVATE()
|
||||
#define LIBCAMERA_DECLARE_PUBLIC(klass)
|
||||
#define LIBCAMERA_D_PTR()
|
||||
#define LIBCAMERA_O_PTR()
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user