Minor code cleanup, step2: remove more useless include.

fix also a minor compil warning
This commit is contained in:
jean-pierre charras 2020-10-01 15:39:34 +02:00
parent c7802e7ff8
commit f702da95c7
10 changed files with 35 additions and 39 deletions

View File

@ -23,7 +23,6 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/ */
#include <fctsys.h>
#include <eda_base_frame.h> #include <eda_base_frame.h>
#include <project.h> #include <project.h>
#include <common.h> #include <common.h>
@ -39,8 +38,6 @@
#include <boost/uuid/uuid_io.hpp> #include <boost/uuid/uuid_io.hpp>
#include <boost/functional/hash.hpp> #include <boost/functional/hash.hpp>
using KIGFX::COLOR4D;
// Create only once, as seeding is *very* expensive // Create only once, as seeding is *very* expensive
static boost::uuids::random_generator randomGenerator; static boost::uuids::random_generator randomGenerator;

View File

@ -29,7 +29,7 @@
#include <dsnlexer.h> #include <dsnlexer.h>
#include <macros.h> #include <macros.h>
#include <vector> #include <vector>
#include <wx/wx.h> #include <wx/log.h>
#include <wx/xml/xml.h> #include <wx/xml/xml.h>
#include <xnode.h> #include <xnode.h>

View File

@ -27,7 +27,6 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/ */
#include <fctsys.h>
#include <plotter.h> #include <plotter.h>
#include <sch_screen.h> #include <sch_screen.h>
#include <sch_edit_frame.h> #include <sch_edit_frame.h>

View File

@ -41,7 +41,6 @@
#include <wx/dir.h> #include <wx/dir.h>
#include <richio.h> #include <richio.h>
#include <gal/color4d.h>
#include <atomic> #include <atomic>
#include <limits> #include <limits>

View File

@ -41,8 +41,6 @@
#include <wx/aui/aui.h> #include <wx/aui/aui.h>
#include <wx/docview.h> #include <wx/docview.h>
#include <wx/event.h> #include <wx/event.h>
#include <fctsys.h>
#include <common.h>
#include <layers_id_colors_and_visibility.h> #include <layers_id_colors_and_visibility.h>
#include <frame_type.h> #include <frame_type.h>
#include <hotkeys_basic.h> #include <hotkeys_basic.h>

View File

@ -25,8 +25,6 @@
#define TOOL_HOLDER_H #define TOOL_HOLDER_H
#include <vector> #include <vector>
#include <fctsys.h>
#include <common.h>
#include <tool/action_manager.h> #include <tool/action_manager.h>
#include <tool/selection.h> #include <tool/selection.h>
#include <tool/tool_action.h> #include <tool/tool_action.h>

View File

@ -31,6 +31,9 @@
#include <wx/string.h> #include <wx/string.h>
#include <wx/arrstr.h>
#include <wx/colour.h>
#include <layers_id_colors_and_visibility.h> #include <layers_id_colors_and_visibility.h>
#include <i18n_utility.h> // For _HKI definition #include <i18n_utility.h> // For _HKI definition

View File

@ -109,7 +109,8 @@ void test::DRC_TEST_PROVIDER_MATCHED_LENGTH::checkLengthViolations(
{ {
bool minViolation = false; bool minViolation = false;
bool maxViolation = false; bool maxViolation = false;
int minLen, maxLen; int minLen = 0;
int maxLen = 0;
if( aConstraint.GetValue().HasMin() && ent.total < aConstraint.GetValue().Min() ) if( aConstraint.GetValue().HasMin() && ent.total < aConstraint.GetValue().Min() )
{ {

View File

@ -32,7 +32,6 @@
#include <boost/ptr_container/ptr_vector.hpp> #include <boost/ptr_container/ptr_vector.hpp>
#include <fctsys.h>
#include <macros.h> #include <macros.h>
#include <lib_id.h> #include <lib_id.h>

View File

@ -21,6 +21,8 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/ */
#include <wx/wx.h>
#include <unit_test_utils/unit_test_utils.h> #include <unit_test_utils/unit_test_utils.h>
#include <layers_id_colors_and_visibility.h> #include <layers_id_colors_and_visibility.h>