summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2024-01-19 19:33:11 +0200
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2024-01-25 02:38:59 +0200
commitd5c9b726bd86c44eac17dfec461d02771c22e101 (patch)
tree3385d98de077272a8ae434d0744486051c49332c /include
parentfc4ded714dc0aafa0ad28d532c5f5f74b4cddd16 (diff)
libcamera: signal: Replace object.h inclusion with forward declatation
The signal.h header doesn't need to include object.h. Replace it with a forward declaration, and instead include object.h in source files that require it. It can speed up compilation a little bit, but more importantly avoids unintended dependencies from the Signal class to the Object class to be added later as the compiler will catch them. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Milan Zamazal <mzamazal@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/libcamera/base/signal.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/libcamera/base/signal.h b/include/libcamera/base/signal.h
index 841e4b4c..444997b4 100644
--- a/include/libcamera/base/signal.h
+++ b/include/libcamera/base/signal.h
@@ -13,10 +13,11 @@
#include <vector>
#include <libcamera/base/bound_method.h>
-#include <libcamera/base/object.h>
namespace libcamera {
+class Object;
+
class SignalBase
{
public: