From 1ba441cae6cf2355f6986b066b696111bec29bd7 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Thu, 18 Apr 2019 18:39:57 +0300 Subject: libcamera: Include header related to source file first Include the header file corresponding to the source file in the very first position. This complies with the Google C++ coding style guideliens, and helps ensuring that the headers are self-contained. Three bugs are already caught by this change (missing includes or forward declarations) in device_enumerator.h, event_dispatcher_poll.h and pipeline_handler.h. Fix them. Signed-off-by: Laurent Pinchart Reviewed-by: Jacopo Mondi --- src/libcamera/event_notifier.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/libcamera/event_notifier.cpp') diff --git a/src/libcamera/event_notifier.cpp b/src/libcamera/event_notifier.cpp index 0f84e412..b32c7ed2 100644 --- a/src/libcamera/event_notifier.cpp +++ b/src/libcamera/event_notifier.cpp @@ -5,9 +5,10 @@ * event_notifier.cpp - File descriptor event notifier */ +#include + #include #include -#include /** * \file event_notifier.h -- cgit v1.2.1