From 689811d87a182807ad98b6f4310ea201d4a11c8f Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Sun, 11 Jul 2021 19:46:55 +0300 Subject: 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 Reviewed-by: Kieran Bingham Reviewed-by: Jacopo Mondi --- include/libcamera/base/class.h | 4 ---- 1 file changed, 4 deletions(-) (limited to 'include') diff --git a/include/libcamera/base/class.h b/include/libcamera/base/class.h index 8212c3d4..c2e1d353 100644 --- a/include/libcamera/base/class.h +++ b/include/libcamera/base/class.h @@ -49,16 +49,12 @@ public: \ friend class klass; \ using Public = klass; -#define LIBCAMERA_D_PTR() \ - _d(); - #define LIBCAMERA_O_PTR() \ _o(); #else #define LIBCAMERA_DECLARE_PRIVATE() #define LIBCAMERA_DECLARE_PUBLIC(klass) -#define LIBCAMERA_D_PTR() #define LIBCAMERA_O_PTR() #endif -- cgit v1.2.1