summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKieran Bingham <kieran.bingham@ideasonboard.com>2021-08-11 09:05:46 +0100
committerKieran Bingham <kieran.bingham@ideasonboard.com>2021-08-27 11:55:05 +0100
commitb1d818beb44d8a658eeae6f83a440c33aeff1f4f (patch)
tree9a24da79d9b29bff21de5f808076278b732bb218
parent643cc403fec2e568dbd7b4dbce8edbaa9eaea98e (diff)
base: class: Remove undesired semi-colon from LIBCAMERA_O_PTR
The LIBCAMERA_O_PTR() define adds the ';' at the end of the templated call to _o(). While this works for the only current user in camera_manager.cpp, even the statement there adds another semi-colon following it. The addition of the semi-colon in the define unnecessarily prohibits the macro from being used in places other than the end of a statement. Remove it. Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
-rw-r--r--include/libcamera/base/class.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/libcamera/base/class.h b/include/libcamera/base/class.h
index 9a82d614..09806cd7 100644
--- a/include/libcamera/base/class.h
+++ b/include/libcamera/base/class.h
@@ -50,7 +50,7 @@ public: \
using Public = klass;
#define LIBCAMERA_O_PTR() \
- _o<Public>();
+ _o<Public>()
#else
#define LIBCAMERA_DECLARE_PRIVATE()