From b5b9c95de160a97701777d37187de194d0b29e61 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 2 Jan 2022 19:55:40 +0000 Subject: Replace include guard macros with pragma once --- game/vehicles/linkHistory.h | 5 +---- game/vehicles/railVehicle.h | 5 +---- game/vehicles/railVehicleClass.h | 5 +---- game/vehicles/train.h | 5 +---- game/vehicles/vehicle.h | 5 +---- 5 files changed, 5 insertions(+), 20 deletions(-) (limited to 'game/vehicles') diff --git a/game/vehicles/linkHistory.h b/game/vehicles/linkHistory.h index 31d0023..6944727 100644 --- a/game/vehicles/linkHistory.h +++ b/game/vehicles/linkHistory.h @@ -1,5 +1,4 @@ -#ifndef LINKHISTORY_H -#define LINKHISTORY_H +#pragma once #include #include @@ -17,5 +16,3 @@ private: std::vector links; float totalLen {0.F}; }; - -#endif diff --git a/game/vehicles/railVehicle.h b/game/vehicles/railVehicle.h index 55cb6a2..f52b154 100644 --- a/game/vehicles/railVehicle.h +++ b/game/vehicles/railVehicle.h @@ -1,5 +1,4 @@ -#ifndef RAILVEHICLE_H -#define RAILVEHICLE_H +#pragma once #include "gfx/renderable.h" #include "railVehicleClass.h" @@ -28,5 +27,3 @@ public: std::array bogies; }; using RailVehiclePtr = std::unique_ptr; - -#endif diff --git a/game/vehicles/railVehicleClass.h b/game/vehicles/railVehicleClass.h index fb881b9..8f82fd2 100644 --- a/game/vehicles/railVehicleClass.h +++ b/game/vehicles/railVehicleClass.h @@ -1,5 +1,4 @@ -#ifndef RAILVEHICLECLASS_H -#define RAILVEHICLECLASS_H +#pragma once #include "gfx/models/mesh.h" #include @@ -30,5 +29,3 @@ private: static float objectLength(ObjParser & o); }; using RailVehicleClassPtr = std::shared_ptr; - -#endif diff --git a/game/vehicles/train.h b/game/vehicles/train.h index c823aed..68f9fbf 100644 --- a/game/vehicles/train.h +++ b/game/vehicles/train.h @@ -1,5 +1,4 @@ -#ifndef TRAIN_H -#define TRAIN_H +#pragma once #include "chronology.hpp" #include "game/activities/go.h" // IWYU pragma: keep @@ -36,5 +35,3 @@ public: [[nodiscard]] Location getBogiePosition(float linkDist, float dist) const; }; - -#endif diff --git a/game/vehicles/vehicle.h b/game/vehicles/vehicle.h index 3ddeac5..24557b5 100644 --- a/game/vehicles/vehicle.h +++ b/game/vehicles/vehicle.h @@ -1,5 +1,4 @@ -#ifndef VEHICLE_H -#define VEHICLE_H +#pragma once #include "chronology.hpp" #include "linkHistory.h" @@ -29,5 +28,3 @@ protected: LinkHistory linkHist; }; using VehicleWPtr = std::weak_ptr; - -#endif -- cgit v1.2.3