std::min/std::max requires <algorithm>

This commit is contained in:
Simon Richter
2020-07-11 15:46:57 +02:00
parent 73168a9405
commit c407e96b14
11 changed files with 21 additions and 0 deletions
+2
View File
@@ -37,6 +37,8 @@
#include <trace_helpers.h>
#include <eda_rect.h>
#include <algorithm>
static const unsigned char dummy_png[] = {
0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a, 0x00, 0x00, 0x00, 0x0d, 0x49, 0x48, 0x44, 0x52,
+2
View File
@@ -34,6 +34,8 @@
#include <wx/evtloop.h>
#include <wx/grid.h>
#include <algorithm>
/// Toggle a window's "enable" status to disabled, then enabled on destruction.
class WDO_ENABLE_DISABLE
{
+1
View File
@@ -20,6 +20,7 @@
#include "dialog_color_picker.h"
#include <cmath>
#include <algorithm>
#define ALPHA_MAX 100 // the max value returned by the alpha (opacity) slider
@@ -34,6 +34,8 @@
#include <widgets/wx_grid.h>
#include <widgets/grid_text_button_helpers.h>
#include <algorithm>
enum TEXT_VAR_GRID_COLUMNS
{
TV_NAME_COL = 0,
+2
View File
@@ -30,6 +30,8 @@
#include <dialog_image_editor.h>
#include <algorithm>
DIALOG_IMAGE_EDITOR::DIALOG_IMAGE_EDITOR( wxWindow* aParent, BITMAP_BASE* aItem )
: DIALOG_IMAGE_EDITOR_BASE( aParent )
@@ -36,6 +36,8 @@
#include <widgets/grid_color_swatch_helpers.h>
#include <widgets/grid_icon_text_helpers.h>
#include <algorithm>
// PCBNEW columns of netclasses grid
enum {
GRID_NAME = 0,
+2
View File
@@ -38,6 +38,8 @@
#include <geometry/geometry_utils.h>
#include <math/util.h> // for KiROUND
#include <algorithm>
static const bool FILLED = true;
static const bool NOT_FILLED = false;
+2
View File
@@ -38,6 +38,8 @@
#include <wx/mstream.h>
#include <math/util.h> // for KiROUND
#include <algorithm>
/*
* Open or create the plot file aFullFilename
+2
View File
@@ -26,6 +26,8 @@
#include <widgets/paged_dialog.h>
#include <wx/stc/stc.h>
#include <algorithm>
// Maps from dialogTitle <-> pageTitle for keeping track of last-selected pages.
// This is not a simple page index because some dialogs have dynamic page sets.
std::map<wxString, wxString> g_lastPage;
@@ -29,6 +29,8 @@
#include <math/box2.h>
#include <math/vector2d.h>
#include <algorithm>
class SHAPE_CIRCLE : public SHAPE
{
public:
@@ -30,6 +30,8 @@
#include <math/box2.h>
#include <math/vector2d.h>
#include <algorithm>
class SHAPE_SEGMENT : public SHAPE {
public: