Codechange: Move includes for common STL headers to stdafx.

This commit is contained in:
Peter Nelson 2023-05-17 09:08:39 +01:00 committed by PeterN
parent a5cf362886
commit 56085be9bd
72 changed files with 5 additions and 98 deletions

View File

@ -15,7 +15,6 @@
#include "../debug.h"
#include "../string_func.h"
#include "../rev.h"
#include <set>
#include "../safeguards.h"

View File

@ -13,7 +13,6 @@
#include "base.hpp"
#include "../debug.h"
#include "../string_func.h"
#include <map>
/**

View File

@ -15,7 +15,6 @@
#include "industry.h"
#include "town.h"
#include "core/overflowsafe_type.hpp"
#include <map>
struct Station;

View File

@ -18,7 +18,6 @@
#include "vehicle_type.h"
#include "core/multimap.hpp"
#include "saveload/saveload.h"
#include <list>
/** Unique identifier for a single cargo packet. */
typedef uint32 CargoPacketID;

View File

@ -59,8 +59,6 @@
#include "misc/endian_buffer.hpp"
#include "string_func.h"
#include <array>
#include "table/strings.h"
#include "safeguards.h"

View File

@ -17,7 +17,6 @@
#include "timer/timer_game_calendar.h"
#include "settings_type.h"
#include "group.h"
#include <array>
/** Statistics about the economy. */
struct CompanyEconomyEntry {

View File

@ -22,7 +22,6 @@
#include "video/video_driver.hpp"
#include "timer/timer.h"
#include "timer/timer_window.h"
#include <deque>
#include "widgets/console_widget.h"

View File

@ -11,7 +11,6 @@
#define CONSOLE_INTERNAL_H
#include "gfx_type.h"
#include <map>
static const uint ICON_CMDLN_SIZE = 1024; ///< maximum length of a typed in command
static const uint ICON_MAX_STREAMSIZE = 2048; ///< maximum length of a totally expanded command

View File

@ -10,9 +10,6 @@
#ifndef MULTIMAP_HPP
#define MULTIMAP_HPP
#include <map>
#include <list>
template<typename Tkey, typename Tvalue, typename Tcompare>
class MultiMap;

View File

@ -12,7 +12,6 @@
#include "core/enum_type.hpp"
#include "string_type.h"
#include <map>
const char *GetDriverParam(const StringList &parm, const char *name);
bool GetDriverParamBool(const StringList &parm, const char *name);

View File

@ -10,7 +10,6 @@
#ifndef ERROR_H
#define ERROR_H
#include <list>
#include "strings_type.h"
#include "company_type.h"
#include "command_type.h"

View File

@ -27,7 +27,6 @@
#include "widgets/error_widget.h"
#include "table/strings.h"
#include <list>
#include "safeguards.h"

View File

@ -25,7 +25,6 @@
#include <pwd.h>
#endif
#include <sys/stat.h>
#include <array>
#include <sstream>
#include "safeguards.h"

View File

@ -13,7 +13,6 @@
#include "game_info.hpp"
#include "game_scanner.hpp"
#include "../debug.h"
#include <set>
#include "../safeguards.h"

View File

@ -11,7 +11,6 @@
#define GAMELOG_INTERNAL_H
#include "gamelog.h"
#include <iterator>
/**
* Information about the presence of a Grf at a certain point during gamelog history

View File

@ -14,7 +14,6 @@
#include "gfx_func.h"
#include "core/smallmap_type.hpp"
#include <map>
#include <stack>
#include <string_view>

View File

@ -24,8 +24,6 @@
#include <hb.h>
#include <hb-ft.h>
#include <deque>
#include "safeguards.h"
/** harfbuzz doesn't use floats, so we need a value to scale position with to get sub-pixel precision. */

View File

@ -10,7 +10,6 @@
#ifndef INDUSTRYTYPE_H
#define INDUSTRYTYPE_H
#include <array>
#include "map_type.h"
#include "slope_type.h"
#include "industry_type.h"

View File

@ -36,9 +36,6 @@
#include "landscape_cmd.h"
#include "terraform_cmd.h"
#include "station_func.h"
#include <array>
#include <list>
#include <set>
#include "table/strings.h"
#include "table/sprites.h"

View File

@ -15,7 +15,6 @@
#include "../widget_type.h"
#include "../window_gui.h"
#include "linkgraph_base.h"
#include <map>
/**
* Monthly statistics for a link between two stations.

View File

@ -12,7 +12,6 @@
#include "../thread.h"
#include "linkgraph.h"
#include <list>
#include <atomic>
class LinkGraphJob;

View File

@ -3,7 +3,6 @@
#include "../stdafx.h"
#include "../core/math_func.hpp"
#include "mcf.h"
#include <set>
#include "../safeguards.h"

View File

@ -12,8 +12,6 @@
#include "../cargo_type.h"
#include "../vehicle_base.h"
#include <map>
#include <set>
/**
* Utility to refresh links a consist will visit.

View File

@ -10,7 +10,6 @@
#ifndef DBG_HELPERS_H
#define DBG_HELPERS_H
#include <map>
#include <stack>
#include "../direction_type.h"

View File

@ -11,7 +11,6 @@
#define LRUCACHE_HPP
#include <utility>
#include <list>
#include <unordered_map>
/**

View File

@ -17,7 +17,6 @@
#include <atomic>
#include <chrono>
#include <map>
#include <thread>
/** The states of sending the packets. */

View File

@ -16,8 +16,6 @@
#include "../network_coordinator.h"
#include "../network_internal.h"
#include <deque>
#include "../../safeguards.h"
/** List of connections that are currently being created */

View File

@ -28,8 +28,6 @@
#include "table/strings.h"
#include <deque>
#include "../safeguards.h"
/** The draw buffer must be able to contain the chat message, client name and the "[All]" message,

View File

@ -51,7 +51,6 @@
#include "../water_cmd.h"
#include "../waypoint_cmd.h"
#include "../script/script_cmd.h"
#include <array>
#include "../safeguards.h"

View File

@ -13,7 +13,6 @@
#include "core/tcp_coordinator.h"
#include "network_stun.h"
#include "network_turn.h"
#include <map>
/**
* Game Coordinator communication.

View File

@ -52,8 +52,6 @@
# include <emscripten.h>
#endif
#include <map>
#include "../safeguards.h"
static void ShowNetworkStartServerWindow();

View File

@ -41,7 +41,6 @@
#include "timer/timer_game_calendar.h"
#include "string_func.h"
#include "network/core/config.h"
#include <map>
#include "smallmap_gui.h"
#include "genworld.h"
#include "error.h"

View File

@ -14,7 +14,6 @@
#include "core/random_func.hpp"
#include "newgrf_sound.h"
#include "water_map.h"
#include <list>
#include "safeguards.h"

View File

@ -36,7 +36,6 @@
#include "table/sprites.h"
#include <map>
#include "safeguards.h"
/**

View File

@ -12,7 +12,6 @@
#include "core/pool_func.hpp"
#include "core/endian_func.hpp"
#include "debug.h"
#include <set>
#include "safeguards.h"

View File

@ -17,8 +17,6 @@
#include "stdafx.h"
#include <array>
#include "newgrf.h"
#include "strings_func.h"
#include "newgrf_storage.h"
@ -31,7 +29,6 @@
#include "core/smallmap_type.hpp"
#include "language.h"
#include <sstream>
#include <map>
#include "table/strings.h"
#include "table/control_codes.h"

View File

@ -14,7 +14,6 @@
#include "../../string_func.h"
#include "../../fileio_func.h"
#include <pthread.h>
#include <array>
#define Rect OTTDRect
#define Point OTTDPoint

View File

@ -27,7 +27,6 @@
#include <sys/stat.h>
#include "../../language.h"
#include "../../thread.h"
#include <array>
#include "../../safeguards.h"

View File

@ -17,7 +17,6 @@
#include "road.h"
#include "road_map.h"
#include "newgrf_engine.h"
#include <deque>
struct RoadVehicle;

View File

@ -15,7 +15,6 @@
#include "../map_func.h"
#include "../core/bitmath_func.hpp"
#include "../fios.h"
#include <array>
#include "../safeguards.h"

View File

@ -33,7 +33,6 @@
#include "../timer/timer_game_calendar.h"
#include "saveload_internal.h"
#include "oldloader.h"
#include <array>
#include "table/strings.h"
#include "../table/engines.h"

View File

@ -43,7 +43,6 @@
#include "../fios.h"
#include "../error.h"
#include <atomic>
#include <deque>
#ifdef __EMSCRIPTEN__
# include <emscripten.h>
#endif

View File

@ -23,8 +23,6 @@
#include "../company_func.h"
#include "../disaster_vehicle.h"
#include <map>
#include "../safeguards.h"
/**

View File

@ -11,7 +11,6 @@
#define SCRIPT_CONTROLLER_HPP
#include "script_types.hpp"
#include <map>
/**
* The Controller, the class each Script should extend. It creates the Script,

View File

@ -12,7 +12,6 @@
#include "script_object.hpp"
#include "script_companymode.hpp"
#include <map>
/**
* Helper to write precondition enforcers for the script API in an abbreviated manner.

View File

@ -12,8 +12,6 @@
#define SCRIPT_LIST_HPP
#include "script_object.hpp"
#include <map>
#include <set>
class ScriptListSorter;

View File

@ -10,8 +10,6 @@
#ifndef SCRIPT_LOG_TYPES_HPP
#define SCRIPT_LOG_TYPES_HPP
#include <deque>
namespace ScriptLogTypes {
/**
* Log levels; The value is also feed to Debug() lvl.

View File

@ -10,8 +10,6 @@
#ifndef SCRIPT_CONFIG_HPP
#define SCRIPT_CONFIG_HPP
#include <map>
#include <list>
#include "../core/smallmap_type.hpp"
#include "../company_type.h"
#include "../textfile_gui.h"

View File

@ -11,7 +11,6 @@
#define SCRIPT_INSTANCE_HPP
#include <variant>
#include <list>
#include <squirrel.h>
#include "script_suspend.hpp"
#include "script_log_types.hpp"

View File

@ -10,7 +10,6 @@
#ifndef SCRIPT_SCANNER_HPP
#define SCRIPT_SCANNER_HPP
#include <map>
#include "../fileio_func.h"
#include "../string_func.h"

View File

@ -20,7 +20,6 @@
#include "../core/alloc_func.hpp"
#include <stdarg.h>
#include <map>
/**
* In the memory allocator for Squirrel we want to directly use malloc/realloc, so when the OS

View File

@ -12,7 +12,6 @@
#ifndef SETTINGS_TABLE_H
#define SETTINGS_TABLE_H
#include <array>
#include "settings_internal.h"
extern SettingTable _company_settings;

View File

@ -10,8 +10,6 @@
#ifndef SHIP_H
#define SHIP_H
#include <deque>
#include "vehicle_base.h"
#include "water_map.h"

View File

@ -18,8 +18,6 @@
#include "linkgraph/linkgraph_type.h"
#include "newgrf_storage.h"
#include "bitmap_type.h"
#include <map>
#include <set>
static const byte INITIAL_STATION_RATING = 175;

View File

@ -37,8 +37,6 @@
#include "table/strings.h"
#include <set>
#include "safeguards.h"
/**

View File

@ -12,7 +12,6 @@
#include "core/smallstack_type.hpp"
#include "tilearea_type.h"
#include <set>
typedef uint16 StationID;
typedef uint16 RoadStopID;

View File

@ -53,6 +53,7 @@
#endif
#include <algorithm>
#include <array>
#include <cassert>
#include <cctype>
#include <cerrno>
@ -65,12 +66,16 @@
#include <cstring>
#include <cstdlib>
#include <cwchar>
#include <deque>
#include <exception>
#include <functional>
#include <iterator>
#include <list>
#include <limits>
#include <map>
#include <memory>
#include <optional>
#include <set>
#include <stdexcept>
#include <string>
#include <type_traits>

View File

@ -10,9 +10,6 @@
#ifndef TAR_TYPE_H
#define TAR_TYPE_H
#include <map>
#include <array>
#include "fileio_type.h"

View File

@ -22,9 +22,6 @@
#include "table/strings.h"
#include <map>
#include <set>
#include "safeguards.h"
/** Set of tiles. */

View File

@ -13,7 +13,6 @@
#include "../landscape.h"
#include "../slope_func.h"
#include <array>
/**
* Check whether the addition of two slope's GetPartialPixelZ values results in

View File

@ -12,7 +12,6 @@
#include "../3rdparty/catch2/catch.hpp"
#include "../string_func.h"
#include <array>
/**** String compare/equals *****/

View File

@ -13,8 +13,6 @@
#include "stdafx.h"
#include <set>
template <typename TTimerType>
class BaseTimer;

View File

@ -16,7 +16,6 @@
#include "subsidy_type.h"
#include "newgrf_storage.h"
#include "cargotype.h"
#include <list>
template <typename T>
struct BuildingCounts {

View File

@ -16,7 +16,6 @@
#include "newgrf_townname.h"
#include "town_type.h"
#include "string_type.h"
#include <set>
typedef std::set<std::string> TownNames;

View File

@ -24,8 +24,6 @@
#include "network/network.h"
#include "saveload/saveload.h"
#include "timer/timer_game_calendar.h"
#include <list>
#include <map>
const uint TILE_AXIAL_DISTANCE = 192; // Logical length of the tile in any DiagDirection used in vehicle movement.
const uint TILE_CORNER_DISTANCE = 128; // Logical length of the tile corner crossing in any non-diagonal direction used in vehicle movement.

View File

@ -44,7 +44,6 @@
#import <sys/param.h> /* for MAXPATHLEN */
#import <sys/time.h> /* gettimeofday */
#include <array>
/* The 10.12 SDK added new names for some enum constants and
* deprecated the old ones. As there's no functional change in any

View File

@ -34,7 +34,6 @@
#include "../../window_gui.h"
#include "../../spritecache.h"
#include "../../toolbar_gui.h"
#include <array>
#include "table/sprites.h"

View File

@ -36,7 +36,6 @@
#include "../debug.h"
#include "../blitter/factory.hpp"
#include "../zoom_func.h"
#include <array>
#include <numeric>
#include "../table/opengl_shader.h"

View File

@ -92,7 +92,6 @@
#include "viewport_cmd.h"
#include <forward_list>
#include <map>
#include <stack>
#include "table/strings.h"

View File

@ -14,7 +14,6 @@
#include "smmintrin.h"
#include "viewport_sprite_sorter.h"
#include <forward_list>
#include <map>
#include <stack>
#include "safeguards.h"

View File

@ -13,8 +13,6 @@
#include "../window_type.h"
#include "../gfx_func.h"
#include <map>
void DrawSliderWidget(Rect r, int min_value, int max_value, int value, const std::map<int, StringID> &labels);
bool ClickSliderWidget(Rect r, Point pt, int min_value, int max_value, int &value);

View File

@ -10,8 +10,6 @@
#ifndef WINDOW_GUI_H
#define WINDOW_GUI_H
#include <list>
#include "vehiclelist.h"
#include "vehicle_type.h"
#include "viewport_type.h"