From 35e129ed47ffc4c23e77e9b4276be9af823e3af2 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Thu, 1 Oct 2020 17:15:15 +0200 Subject: [PATCH] Minor code cleanup, step3: remove more useless include. --- common/search_stack.cpp | 2 ++ common/searchhelpfilefullpath.cpp | 1 + include/common.h | 4 +++- include/macros.h | 3 ++- include/property.h | 2 +- include/status_popup.h | 5 ++++- pcbnew/pcbnew.h | 1 - 7 files changed, 13 insertions(+), 5 deletions(-) diff --git a/common/search_stack.cpp b/common/search_stack.cpp index 3cfa3c4eda..06235c79ad 100644 --- a/common/search_stack.cpp +++ b/common/search_stack.cpp @@ -26,6 +26,8 @@ #include #include #include +#include + #if defined(__MINGW32__) #define PATH_SEPS wxT( ";\r\n" ) diff --git a/common/searchhelpfilefullpath.cpp b/common/searchhelpfilefullpath.cpp index 64636dbeff..e59b382962 100644 --- a/common/searchhelpfilefullpath.cpp +++ b/common/searchhelpfilefullpath.cpp @@ -27,6 +27,7 @@ #include #include // to define DEFAULT_INSTALL_PATH #include +#include #include diff --git a/include/common.h b/include/common.h index 053597e270..d7aec28e06 100644 --- a/include/common.h +++ b/include/common.h @@ -35,10 +35,12 @@ #include #include -#include #include #include #include +#include +#include +#include #include diff --git a/include/macros.h b/include/macros.h index ddb5611b2b..4f8e20bb7e 100644 --- a/include/macros.h +++ b/include/macros.h @@ -31,13 +31,14 @@ #ifndef MACROS_H #define MACROS_H -#include #include #include #include #include #include // std::shared_ptr +#include + #if defined( __has_attribute ) #define KI_HAS_ATTRIBUTE( x ) __has_attribute( x ) #else diff --git a/include/property.h b/include/property.h index c51f1bb1da..df24e5e01f 100644 --- a/include/property.h +++ b/include/property.h @@ -22,9 +22,9 @@ #ifndef PROPERTY_H #define PROPERTY_H -#include #include #include +#include #include #include diff --git a/include/status_popup.h b/include/status_popup.h index 6a4e9cb2fa..835683a14b 100644 --- a/include/status_popup.h +++ b/include/status_popup.h @@ -26,9 +26,12 @@ #define __STATUS_POPUP_H_ -#include #include #include +#include +#include +#include +#include class EDA_DRAW_FRAME; diff --git a/pcbnew/pcbnew.h b/pcbnew/pcbnew.h index d336257460..c0eefa7adf 100644 --- a/pcbnew/pcbnew.h +++ b/pcbnew/pcbnew.h @@ -25,7 +25,6 @@ #ifndef PCBNEW_H #define PCBNEW_H -#include // wxWidgets include. #include // to define Mils2iu() conversion function // These are only here for algorithmic safety, not to tell the user what to do