From 42d69af5b5528892849958272b5f582ccf1ff010 Mon Sep 17 00:00:00 2001 From: matheusvb3 <98937378+matheusvb3@users.noreply.github.com> Date: Thu, 15 Jan 2026 11:11:12 -0300 Subject: [PATCH] Add missing include guards These were being used in multiple files all throughout the codebase! --- src/openrct2/core/BackgroundWorker.hpp | 2 ++ src/openrct2/peep/PeepSpriteIds.h | 2 ++ src/openrct2/world/map_generator/TreePlacement.h | 2 ++ test/tests/TestData.h | 4 ++-- test/tests/helpers/StringHelpers.hpp | 2 ++ 5 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/openrct2/core/BackgroundWorker.hpp b/src/openrct2/core/BackgroundWorker.hpp index 5d840754a0..333dab2466 100644 --- a/src/openrct2/core/BackgroundWorker.hpp +++ b/src/openrct2/core/BackgroundWorker.hpp @@ -7,6 +7,8 @@ * OpenRCT2 is licensed under the GNU General Public License version 3. *****************************************************************************/ +#pragma once + #include #include #include diff --git a/src/openrct2/peep/PeepSpriteIds.h b/src/openrct2/peep/PeepSpriteIds.h index 749227c188..f2ed9dca9a 100644 --- a/src/openrct2/peep/PeepSpriteIds.h +++ b/src/openrct2/peep/PeepSpriteIds.h @@ -7,6 +7,8 @@ * OpenRCT2 is licensed under the GNU General Public License version 3. *****************************************************************************/ +#pragma once + namespace OpenRCT2 { enum diff --git a/src/openrct2/world/map_generator/TreePlacement.h b/src/openrct2/world/map_generator/TreePlacement.h index b15e531474..7dae4512c9 100644 --- a/src/openrct2/world/map_generator/TreePlacement.h +++ b/src/openrct2/world/map_generator/TreePlacement.h @@ -7,6 +7,8 @@ * OpenRCT2 is licensed under the GNU General Public License version 3. *****************************************************************************/ +#pragma once + namespace OpenRCT2::World::MapGenerator { struct Settings; diff --git a/test/tests/TestData.h b/test/tests/TestData.h index d96878dfd0..9511eafe16 100644 --- a/test/tests/TestData.h +++ b/test/tests/TestData.h @@ -7,10 +7,10 @@ * OpenRCT2 is licensed under the GNU General Public License version 3. *****************************************************************************/ -#include - #pragma once +#include + namespace TestData { std::string GetBasePath(); diff --git a/test/tests/helpers/StringHelpers.hpp b/test/tests/helpers/StringHelpers.hpp index 5c8b406144..3dc0758686 100644 --- a/test/tests/helpers/StringHelpers.hpp +++ b/test/tests/helpers/StringHelpers.hpp @@ -7,6 +7,8 @@ * OpenRCT2 is licensed under the GNU General Public License version 3. *****************************************************************************/ +#pragma once + #include #include #include