std::min/std::max requires <algorithm>
This commit is contained in:
parent
73168a9405
commit
c407e96b14
|
@ -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,
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -38,6 +38,8 @@
|
|||
#include <wx/mstream.h>
|
||||
#include <math/util.h> // for KiROUND
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
|
||||
/*
|
||||
* Open or create the plot file aFullFilename
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue