summaryrefslogtreecommitdiff
path: root/game/vehicles
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2022-01-02 19:55:40 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2022-01-02 19:55:40 +0000
commitb5b9c95de160a97701777d37187de194d0b29e61 (patch)
tree9acc47919f90b119ee6029266f565bd33e0c3630 /game/vehicles
parentSeparate geographic data (GeoData) from its visual representation(s) (Terrain) (diff)
downloadilt-b5b9c95de160a97701777d37187de194d0b29e61.tar.bz2
ilt-b5b9c95de160a97701777d37187de194d0b29e61.tar.xz
ilt-b5b9c95de160a97701777d37187de194d0b29e61.zip
Replace include guard macros with pragma once
Diffstat (limited to 'game/vehicles')
-rw-r--r--game/vehicles/linkHistory.h5
-rw-r--r--game/vehicles/railVehicle.h5
-rw-r--r--game/vehicles/railVehicleClass.h5
-rw-r--r--game/vehicles/train.h5
-rw-r--r--game/vehicles/vehicle.h5
5 files changed, 5 insertions, 20 deletions
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 <game/network/link.h>
#include <utility>
@@ -17,5 +16,3 @@ private:
std::vector<WEntry> 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<Location, 2> bogies;
};
using RailVehiclePtr = std::unique_ptr<RailVehicle>;
-
-#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 <array>
@@ -30,5 +29,3 @@ private:
static float objectLength(ObjParser & o);
};
using RailVehicleClassPtr = std::shared_ptr<RailVehicleClass>;
-
-#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<Vehicle>;
-
-#endif