summaryrefslogtreecommitdiff
path: root/src/libcamera/geometry.cpp
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2019-04-18 18:39:57 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2019-04-19 13:38:14 +0300
commit1ba441cae6cf2355f6986b066b696111bec29bd7 (patch)
tree74084de32c4868809ae6ff7fa1f9814cd152f729 /src/libcamera/geometry.cpp
parent0af0fb9ca9eae903cc533a05e2282ec36cc3ce55 (diff)
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 <laurent.pinchart@ideasonboard.com> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
Diffstat (limited to 'src/libcamera/geometry.cpp')
-rw-r--r--src/libcamera/geometry.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcamera/geometry.cpp b/src/libcamera/geometry.cpp
index a39b85e4..c8aa05f5 100644
--- a/src/libcamera/geometry.cpp
+++ b/src/libcamera/geometry.cpp
@@ -5,11 +5,11 @@
* geometry.cpp - Geometry-related structures
*/
+#include <libcamera/geometry.h>
+
#include <sstream>
#include <stdint.h>
-#include <libcamera/geometry.h>
-
/**
* \file geometry.h
* \brief Data structures related to geometric objects