From 2fbe2c72979e1470c85b8ff631e42e0594bd523c Mon Sep 17 00:00:00 2001 From: HampusM Date: Mon, 24 Jan 2022 22:40:42 +0100 Subject: refactor: use #pragma once --- src/matrix.hpp | 4 +--- src/maze.hpp | 4 +--- src/utils.hpp | 4 +--- src/vector2.hpp | 4 +--- 4 files changed, 4 insertions(+), 12 deletions(-) (limited to 'src') diff --git a/src/matrix.hpp b/src/matrix.hpp index 83f9fc2..d754c31 100644 --- a/src/matrix.hpp +++ b/src/matrix.hpp @@ -1,5 +1,4 @@ -#ifndef MATRIX_HPP -#define MATRIX_HPP +#pragma once #include "vector2.hpp" #include @@ -64,4 +63,3 @@ private: #include "matrix.tpp" -#endif diff --git a/src/maze.hpp b/src/maze.hpp index 0ff1d06..106e347 100644 --- a/src/maze.hpp +++ b/src/maze.hpp @@ -1,5 +1,4 @@ -#ifndef MAZE_HPP -#define MAZE_HPP +#pragma once #include "matrix.hpp" #include "vector2.hpp" @@ -21,4 +20,3 @@ void matrix_to_maze(Matrix *matrix, std::shared_ptr start_pos, #include "maze.tpp" -#endif diff --git a/src/utils.hpp b/src/utils.hpp index 91a1d8e..8c4cf4e 100644 --- a/src/utils.hpp +++ b/src/utils.hpp @@ -1,5 +1,4 @@ -#ifndef UTILS_HPP -#define UTILS_HPP +#pragma once #include #include @@ -12,4 +11,3 @@ */ unsigned int str_to_uint(std::string str); -#endif diff --git a/src/vector2.hpp b/src/vector2.hpp index ccfa75b..223a59b 100644 --- a/src/vector2.hpp +++ b/src/vector2.hpp @@ -1,5 +1,4 @@ -#ifndef VECTOR2_HPP -#define VECTOR2_HPP +#pragma once #include @@ -59,4 +58,3 @@ private: unsigned int _y; }; -#endif -- cgit v1.2.3-18-g5258