Reduce `<algorithm>` include (#21947)

This commit is contained in:
Michał Janiszewski 2024-05-01 13:47:27 +02:00 committed by GitHub
parent 8973e35ba1
commit 7b12667ddb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
153 changed files with 3 additions and 175 deletions

View File

@ -13,7 +13,6 @@
#include "interface/InGameConsole.h"
#include <SDL.h>
#include <algorithm>
#include <openrct2-ui/interface/Window.h>
#include <openrct2/common.h>
#include <openrct2/core/Memory.hpp>

View File

@ -12,6 +12,7 @@
# include "UiContext.h"
# include <SDL.h>
# include <algorithm>
# include <dlfcn.h>
# include <openrct2/common.h>
# include <openrct2/core/Path.hpp>

View File

@ -21,7 +21,6 @@
# include <SDL.h>
# include <SDL_syswm.h>
# include <algorithm>
# include <openrct2/common.h>
# include <openrct2/core/Path.hpp>
# include <openrct2/core/String.hpp>

View File

@ -21,7 +21,6 @@
#include "title/TitleSequencePlayer.h"
#include <SDL.h>
#include <algorithm>
#include <chrono>
#include <cmath>
#include <cstdlib>

View File

@ -10,7 +10,6 @@
#include "BitmapReader.h"
#include <SDL.h>
#include <algorithm>
#include <cstring>
#include <openrct2/core/Imaging.h>
#include <stdexcept>

View File

@ -22,7 +22,6 @@
# include "TransparencyDepth.h"
# include <SDL.h>
# include <algorithm>
# include <cmath>
# include <openrct2-ui/interface/Window.h>
# include <openrct2/config/Config.h>

View File

@ -13,7 +13,6 @@
#include "OpenGLAPI.h"
#include <SDL_pixels.h>
#include <algorithm>
#include <array>
#include <mutex>
#include <openrct2/common.h>

View File

@ -7,7 +7,6 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
#include <algorithm>
#include <cmath>
#include <iterator>
#include <openrct2-ui/interface/Dropdown.h>

View File

@ -11,7 +11,6 @@
#include "Theme.h"
#include <algorithm>
#include <cstring>
#include <openrct2/Context.h>
#include <openrct2/Version.h>

View File

@ -13,7 +13,6 @@
#include "Window.h"
#include <algorithm>
#include <memory>
#include <openrct2/Context.h>
#include <openrct2/PlatformEnvironment.h>

View File

@ -11,7 +11,6 @@
#include "Viewport.h"
#include "Window.h"
#include <algorithm>
#include <openrct2/Context.h>
#include <openrct2/Editor.h>
#include <openrct2/Game.h>

View File

@ -11,7 +11,6 @@
#include "Window.h"
#include <algorithm>
#include <cmath>
#include <openrct2/Context.h>
#include <openrct2/Input.h>

View File

@ -14,7 +14,6 @@
#include "openrct2/world/Location.hpp"
#include <SDL.h>
#include <algorithm>
#include <openrct2-ui/windows/Window.h>
#include <openrct2/Context.h>
#include <openrct2/Input.h>

View File

@ -18,7 +18,6 @@
# include "ScViewport.hpp"
# include "ScWindow.hpp"
# include <algorithm>
# include <memory>
# include <openrct2/Context.h>
# include <openrct2/Input.h>

View File

@ -11,7 +11,6 @@
#include "../interface/Window.h"
#include <algorithm>
#include <memory>
#include <openrct2/Context.h>
#include <openrct2/Game.h>

View File

@ -7,7 +7,6 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
#include <algorithm>
#include <fstream>
#include <openrct2-ui/interface/Widget.h>
#include <openrct2-ui/windows/Window.h>

View File

@ -7,7 +7,6 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
#include <algorithm>
#include <iterator>
#include <openrct2-ui/interface/Dropdown.h>
#include <openrct2-ui/interface/Widget.h>

View File

@ -7,7 +7,6 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
#include <algorithm>
#include <openrct2-ui/interface/LandTool.h>
#include <openrct2-ui/interface/Widget.h>
#include <openrct2-ui/windows/Window.h>

View File

@ -7,7 +7,6 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
#include <algorithm>
#include <openrct2-ui/interface/Widget.h>
#include <openrct2-ui/windows/Window.h>
#include <openrct2/Context.h>

View File

@ -7,7 +7,6 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
#include <algorithm>
#include <bitset>
#include <iterator>
#include <openrct2-ui/interface/Dropdown.h>

View File

@ -7,7 +7,6 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
#include <algorithm>
#include <cctype>
#include <openrct2-ui/interface/Dropdown.h>
#include <openrct2-ui/interface/Widget.h>

View File

@ -12,7 +12,6 @@
#include "../interface/Window.h"
#include "Window.h"
#include <algorithm>
#include <openrct2/Context.h>
#include <openrct2/GameState.h>
#include <openrct2/OpenRCT2.h>

View File

@ -12,7 +12,6 @@
#include "../interface/Window.h"
#include "Window.h"
#include <algorithm>
#include <openrct2/Context.h>
#include <openrct2/Editor.h>
#include <openrct2/Game.h>

View File

@ -7,7 +7,6 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
#include <algorithm>
#include <openrct2-ui/interface/Widget.h>
#include <openrct2-ui/windows/Window.h>
#include <openrct2/Context.h>

View File

@ -7,7 +7,6 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
#include <algorithm>
#include <openrct2-ui/interface/Dropdown.h>
#include <openrct2-ui/interface/Graph.h>
#include <openrct2-ui/interface/Widget.h>

View File

@ -9,7 +9,6 @@
#include "../interface/Theme.h"
#include <algorithm>
#include <openrct2-ui/interface/Widget.h>
#include <openrct2-ui/windows/Window.h>
#include <openrct2/Context.h>

View File

@ -7,7 +7,6 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
#include <algorithm>
#include <memory>
#include <openrct2-ui/interface/Widget.h>
#include <openrct2-ui/windows/Window.h>

View File

@ -7,7 +7,6 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
#include <algorithm>
#include <openrct2-ui/interface/LandTool.h>
#include <openrct2-ui/interface/Viewport.h>
#include <openrct2-ui/interface/Widget.h>

View File

@ -7,7 +7,6 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
#include <algorithm>
#include <ctime>
#include <iterator>
#include <memory>

View File

@ -7,7 +7,6 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
#include <algorithm>
#include <openrct2-ui/interface/LandTool.h>
#include <openrct2-ui/interface/Viewport.h>
#include <openrct2-ui/interface/Widget.h>

View File

@ -7,7 +7,6 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
#include <algorithm>
#include <openrct2-ui/interface/Dropdown.h>
#include <openrct2-ui/interface/LandTool.h>
#include <openrct2-ui/interface/Widget.h>

View File

@ -7,7 +7,6 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
#include <algorithm>
#include <openrct2-ui/interface/Dropdown.h>
#include <openrct2-ui/interface/Widget.h>
#include <openrct2-ui/windows/Window.h>

View File

@ -7,7 +7,6 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
#include <algorithm>
#include <iterator>
#include <limits>
#include <openrct2-ui/interface/Widget.h>

View File

@ -7,7 +7,6 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
#include <algorithm>
#include <openrct2-ui/interface/Widget.h>
#include <openrct2-ui/windows/Window.h>
#include <openrct2/Context.h>

View File

@ -14,7 +14,6 @@
#include "../interface/Theme.h"
#include <algorithm>
#include <cmath>
#include <openrct2-ui/interface/Dropdown.h>
#include <openrct2-ui/interface/Viewport.h>

View File

@ -9,7 +9,6 @@
#include "../interface/Theme.h"
#include <algorithm>
#include <array>
#include <limits>
#include <openrct2-ui/interface/Dropdown.h>

View File

@ -7,7 +7,6 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
#include <algorithm>
#include <openrct2-ui/interface/LandTool.h>
#include <openrct2-ui/interface/Viewport.h>
#include <openrct2-ui/interface/Widget.h>

View File

@ -9,7 +9,6 @@
#include "../interface/Theme.h"
#include <algorithm>
#include <cmath>
#include <iterator>
#include <limits>

View File

@ -9,7 +9,6 @@
#include "../ride/Construction.h"
#include <algorithm>
#include <limits>
#include <openrct2-ui/interface/Dropdown.h>
#include <openrct2-ui/interface/Viewport.h>

View File

@ -7,7 +7,6 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
#include <algorithm>
#include <deque>
#include <openrct2-ui/interface/Dropdown.h>
#include <openrct2-ui/interface/Viewport.h>

View File

@ -9,7 +9,6 @@
#include <SDL.h>
#include <SDL_keycode.h>
#include <algorithm>
#include <iterator>
#include <openrct2-ui/interface/Widget.h>
#include <openrct2-ui/windows/Window.h>

View File

@ -7,7 +7,6 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
#include <algorithm>
#include <iterator>
#include <openrct2-ui/interface/Dropdown.h>
#include <openrct2-ui/interface/Widget.h>

View File

@ -7,7 +7,6 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
#include <algorithm>
#include <openrct2-ui/interface/Widget.h>
#include <openrct2-ui/windows/Window.h>
#include <openrct2/Context.h>

View File

@ -11,7 +11,6 @@
#include "../interface/InGameConsole.h"
#include "../scripting/CustomMenu.h"
#include <algorithm>
#include <iterator>
#include <limits>
#include <openrct2-ui/interface/Dropdown.h>

View File

@ -7,7 +7,6 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
#include <algorithm>
#include <openrct2-ui/interface/Widget.h>
#include <openrct2-ui/windows/Window.h>
#include <openrct2/Context.h>

View File

@ -7,7 +7,6 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
#include <algorithm>
#include <openrct2-ui/interface/Viewport.h>
#include <openrct2-ui/interface/Widget.h>
#include <openrct2-ui/windows/Window.h>

View File

@ -7,7 +7,6 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
#include <algorithm>
#include <openrct2-ui/interface/Widget.h>
#include <openrct2-ui/ride/Construction.h>
#include <openrct2-ui/windows/Window.h>

View File

@ -7,7 +7,6 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
#include <algorithm>
#include <iterator>
#include <openrct2-ui/interface/Dropdown.h>
#include <openrct2-ui/interface/Theme.h>

View File

@ -7,7 +7,6 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
#include <algorithm>
#include <cmath>
#include <openrct2-ui/interface/Viewport.h>
#include <openrct2-ui/interface/Widget.h>

View File

@ -7,7 +7,6 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
#include <algorithm>
#include <openrct2-ui/interface/LandTool.h>
#include <openrct2-ui/interface/Widget.h>
#include <openrct2-ui/windows/Window.h>

View File

@ -17,8 +17,6 @@
#include "localisation/LocalisationService.h"
#include "object/Object.h"
#include <algorithm>
using namespace OpenRCT2;
constexpr std::string_view ManifestFileName = "manifest.json";

View File

@ -77,7 +77,6 @@
#include "util/Util.h"
#include "world/Park.h"
#include <algorithm>
#include <cmath>
#include <exception>
#include <future>

View File

@ -15,8 +15,6 @@
#include "GameState.h"
#include "core/Guard.hpp"
#include <algorithm>
using namespace OpenRCT2;
constexpr int32_t kMonthTicksIncrement = 4;

View File

@ -48,7 +48,6 @@
#include "world/Park.h"
#include "world/Scenery.h"
#include <algorithm>
#include <array>
#include <vector>

View File

@ -70,7 +70,6 @@
#include "world/Scenery.h"
#include "world/Surface.h"
#include <algorithm>
#include <cstdio>
#include <iterator>
#include <memory>

View File

@ -44,7 +44,6 @@
#include "world/Park.h"
#include "world/Scenery.h"
#include <algorithm>
#include <chrono>
using namespace OpenRCT2;

View File

@ -22,8 +22,6 @@
#include "SmallSceneryRemoveAction.h"
#include "WallRemoveAction.h"
#include <algorithm>
ClearAction::ClearAction(MapRange range, ClearableItems itemsToClear)
: _range(range)
, _itemsToClear(itemsToClear)

View File

@ -30,7 +30,6 @@
#include "../world/Park.h"
#include "../world/Scenery.h"
#include <algorithm>
#include <iterator>
using namespace OpenRCT2;

View File

@ -2,6 +2,8 @@
#include "../localisation/Localisation.h"
#include <algorithm>
namespace GameActions
{
Result::Result(GameActions::Status error, StringId title, StringId message, uint8_t* args /*= nullptr*/)

View File

@ -26,8 +26,6 @@
#include "../scenario/Scenario.h"
#include "../world/Park.h"
#include <algorithm>
using namespace OpenRCT2;
RideCreateAction::RideCreateAction(

View File

@ -18,8 +18,6 @@
#include "../util/Util.h"
#include "../world/Park.h"
#include <algorithm>
using namespace OpenRCT2;
void ScenarioSetSettingAction::Serialise(DataSerialiser& stream)

View File

@ -33,7 +33,6 @@
#include "AudioContext.h"
#include "AudioMixer.h"
#include <algorithm>
#include <cmath>
#include <memory>
#include <vector>

View File

@ -14,7 +14,6 @@
#include "../core/String.hpp"
#include "../platform/Platform.h"
#include <algorithm>
#include <cstring>
#pragma region CommandLineArgEnumerator

View File

@ -9,7 +9,6 @@
#pragma once
#include <algorithm>
#include <functional>
template<class ForwardIt, class T, class Compare = std::less<>>

View File

@ -8,7 +8,6 @@
*****************************************************************************/
#pragma once
#include <algorithm>
#include <array>
#include <cstddef>
#include <cstdint>

View File

@ -9,7 +9,6 @@
#include "Crypt.h"
#include <algorithm>
#include <cassert>
#include <cstdint>
#include <cstdlib>

View File

@ -12,7 +12,6 @@
#include "Path.hpp"
#include "String.hpp"
#include <algorithm>
#include <string_view>
#ifndef _WIN32

View File

@ -7,7 +7,6 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
#include <algorithm>
#include <array>
#include <cstdio>
#include <stdexcept>

View File

@ -19,7 +19,6 @@
#include "Memory.hpp"
#include "String.hpp"
#include <algorithm>
#include <fstream>
#include <png.h>
#include <stdexcept>

View File

@ -9,7 +9,6 @@
#include "JobPool.h"
#include <algorithm>
#include <cassert>
JobPool::TaskData::TaskData(std::function<void()> workFn, std::function<void()> completionFn)

View File

@ -11,7 +11,6 @@
#include "Memory.hpp"
#include <algorithm>
#include <cstring>
namespace OpenRCT2

View File

@ -15,7 +15,6 @@
#include "Identifier.hpp"
#include "MemoryStream.h"
#include <algorithm>
#include <array>
#include <cstdint>
#include <fstream>

View File

@ -17,7 +17,6 @@
#include "Memory.hpp"
#include "String.hpp"
#include <algorithm>
#include <iterator>
namespace Path

View File

@ -7,7 +7,6 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
#include <algorithm>
#include <cctype>
#include <cwctype>
#include <iomanip>

View File

@ -11,7 +11,6 @@
#include "String.hpp"
#include <algorithm>
#include <iterator>
StringBuilder::StringBuilder(size_t capacity)

View File

@ -11,7 +11,6 @@
#include "IStream.hpp"
#include <algorithm>
#ifndef __ANDROID__
# include <zip.h>
#endif

View File

@ -9,7 +9,6 @@
#include "Drawing.h"
#include <algorithm>
#include <cstring>
template<DrawBlendOp TBlendOp, size_t TZoom>

View File

@ -22,7 +22,6 @@
#include "../util/Util.h"
#include "ScrollingText.h"
#include <algorithm>
#include <memory>
#include <stdexcept>
#include <vector>

View File

@ -23,8 +23,6 @@
#include "../sprites.h"
#include "TTF.h"
#include <algorithm>
using namespace OpenRCT2;
static int32_t TTFGetStringWidth(std::string_view text, FontStyle fontStyle, bool noFormatting);

View File

@ -25,7 +25,6 @@
#include "../world/Map.h"
#include "Drawing.h"
#include <algorithm>
#include <cmath>
#include <cstring>

View File

@ -21,7 +21,6 @@
#include "Drawing.h"
#include "TTF.h"
#include <algorithm>
#include <mutex>
using namespace OpenRCT2;

View File

@ -35,7 +35,6 @@ misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
*/
# include <algorithm>
# include <cmath>
# include <cstring>
# include <stdio.h>

View File

@ -24,7 +24,6 @@
#include "LightFX.h"
#include "Weather.h"
#include <algorithm>
#include <cstring>
using namespace OpenRCT2;

View File

@ -20,7 +20,6 @@
#include "../world/Surface.h"
#include "EntityRegistry.h"
#include <algorithm>
#include <iterator>
#include <limits>

View File

@ -31,7 +31,6 @@
#include "MoneyEffect.h"
#include "Particle.h"
#include <algorithm>
#include <cmath>
#include <iterator>
#include <numeric>

View File

@ -61,7 +61,6 @@
#include "Peep.h"
#include "Staff.h"
#include <algorithm>
#include <functional>
#include <iterator>

View File

@ -58,7 +58,6 @@
#include "PatrolArea.h"
#include "Staff.h"
#include <algorithm>
#include <iterator>
#include <limits>
#include <map>

View File

@ -17,7 +17,6 @@
#include "../util/Util.h"
#include "../world/Location.hpp"
#include <algorithm>
#include <array>
#include <optional>

View File

@ -47,7 +47,6 @@
#include "PatrolArea.h"
#include "Peep.h"
#include <algorithm>
#include <iterator>
using namespace OpenRCT2;

View File

@ -21,8 +21,6 @@
#include "../util/Util.h"
#include "../world/Location.hpp"
#include <algorithm>
using namespace OpenRCT2;
using namespace OpenRCT2::Audio;

View File

@ -13,7 +13,6 @@
#include "../drawing/Drawing.h"
#include "../sprites.h"
#include <algorithm>
#include <cmath>
ColourShadeMap ColourMapA[COLOUR_COUNT] = {};

View File

@ -64,7 +64,6 @@
#include "../world/Scenery.h"
#include "Viewport.h"
#include <algorithm>
#include <array>
#include <cmath>
#include <cstdarg>

View File

@ -33,7 +33,6 @@
#include "../world/Surface.h"
#include "Viewport.h"
#include <algorithm>
#include <cctype>
#include <chrono>
#include <cstdlib>

View File

@ -41,7 +41,6 @@
#include "Window.h"
#include "Window_internal.h"
#include <algorithm>
#include <cstring>
#include <list>
#include <unordered_map>

View File

@ -34,7 +34,6 @@
#include "Widget.h"
#include "Window_internal.h"
#include <algorithm>
#include <cmath>
#include <functional>
#include <iterator>

View File

@ -11,7 +11,6 @@
#include "ConversionTables.h"
#include "Language.h"
#include <algorithm>
#include <limits>
#include <stdexcept>

View File

@ -21,7 +21,6 @@
#include "Localisation.h"
#include "LocalisationService.h"
#include <algorithm>
#include <memory>
#include <string>
#include <vector>

View File

@ -30,7 +30,6 @@
#include "Formatting.h"
#include "Localisation.h"
#include <algorithm>
#include <cmath>
#include <cstring>
#include <ctype.h>

View File

@ -22,8 +22,6 @@
#include "../world/Park.h"
#include "NewsItem.h"
#include <algorithm>
using namespace OpenRCT2;
constexpr uint8_t NEGATIVE = 0;

View File

@ -39,7 +39,6 @@
#include "Finance.h"
#include "NewsItem.h"
#include <algorithm>
#include <iterator>
using namespace OpenRCT2;

Some files were not shown because too many files have changed in this diff Show More