From f1069023eeb066f9775bf6c7bb9d132a9b1dd23b Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Tue, 1 Mar 2022 12:19:08 +1100 Subject: [PATCH] AP_Common: tidy includes --- libraries/AP_Common/ExpandingString.cpp | 2 ++ libraries/AP_Common/ExpandingString.h | 4 +++- libraries/AP_Common/tests/test_expandingstring.cpp | 1 + libraries/AP_Common/tests/test_expandingstring_failure.cpp | 1 + 4 files changed, 7 insertions(+), 1 deletion(-) diff --git a/libraries/AP_Common/ExpandingString.cpp b/libraries/AP_Common/ExpandingString.cpp index 84101c3f0f..31420d95fe 100644 --- a/libraries/AP_Common/ExpandingString.cpp +++ b/libraries/AP_Common/ExpandingString.cpp @@ -18,6 +18,8 @@ #include "ExpandingString.h" +#include + extern const AP_HAL::HAL& hal; #define EXPAND_INCREMENT 512 diff --git a/libraries/AP_Common/ExpandingString.h b/libraries/AP_Common/ExpandingString.h index abc6de2ea7..2561332f3e 100644 --- a/libraries/AP_Common/ExpandingString.h +++ b/libraries/AP_Common/ExpandingString.h @@ -18,7 +18,9 @@ #pragma once -#include +#include + +#include class ExpandingString { public: diff --git a/libraries/AP_Common/tests/test_expandingstring.cpp b/libraries/AP_Common/tests/test_expandingstring.cpp index be4c3ee41f..99cd16e4e6 100644 --- a/libraries/AP_Common/tests/test_expandingstring.cpp +++ b/libraries/AP_Common/tests/test_expandingstring.cpp @@ -1,5 +1,6 @@ #include #include +#include const AP_HAL::HAL& hal = AP_HAL::get_HAL(); diff --git a/libraries/AP_Common/tests/test_expandingstring_failure.cpp b/libraries/AP_Common/tests/test_expandingstring_failure.cpp index 930207aaab..f95d3d9210 100644 --- a/libraries/AP_Common/tests/test_expandingstring_failure.cpp +++ b/libraries/AP_Common/tests/test_expandingstring_failure.cpp @@ -1,6 +1,7 @@ #include #include #include +#include /** * This file test realloc failure on ExpandingString