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/network/link.h | 5 +---- game/network/network.h | 5 +---- game/network/rail.h | 5 +---- game/network/routeWalker.h | 5 +---- 4 files changed, 4 insertions(+), 16 deletions(-) (limited to 'game/network') diff --git a/game/network/link.h b/game/network/link.h index 16ae5f7..51c29ff 100644 --- a/game/network/link.h +++ b/game/network/link.h @@ -1,5 +1,4 @@ -#ifndef LINK_H -#define LINK_H +#pragma once #include #include @@ -88,5 +87,3 @@ public: Arc arc; }; LinkCurve::~LinkCurve() = default; - -#endif diff --git a/game/network/network.h b/game/network/network.h index 31fc744..3be7943 100644 --- a/game/network/network.h +++ b/game/network/network.h @@ -1,5 +1,4 @@ -#ifndef NETWORK_H -#define NETWORK_H +#pragma once #include "link.h" #include @@ -53,5 +52,3 @@ public: void render(const Shader &) const override; }; - -#endif diff --git a/game/network/rail.h b/game/network/rail.h index 47969d6..758beb6 100644 --- a/game/network/rail.h +++ b/game/network/rail.h @@ -1,5 +1,4 @@ -#ifndef RAILLINKS_H -#define RAILLINKS_H +#pragma once #include "chronology.hpp" #include "game/worldobject.h" @@ -58,5 +57,3 @@ public: private: void tick(TickDuration elapsed) override; }; - -#endif diff --git a/game/network/routeWalker.h b/game/network/routeWalker.h index d70103f..e0577ae 100644 --- a/game/network/routeWalker.h +++ b/game/network/routeWalker.h @@ -1,5 +1,4 @@ -#ifndef ROUTEWALKER_H -#define ROUTEWALKER_H +#pragma once #include "link.h" #include @@ -19,5 +18,3 @@ private: Solution bestSolution, currentSolution; float solutionLength; }; - -#endif -- cgit v1.2.3