aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/matrix.hpp4
-rw-r--r--src/maze.hpp4
-rw-r--r--src/utils.hpp4
-rw-r--r--src/vector2.hpp4
4 files changed, 4 insertions, 12 deletions
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 <vector>
@@ -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<Element> *matrix, std::shared_ptr<Vector2> 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 <memory>
#include <string>
@@ -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 <memory>
@@ -59,4 +58,3 @@ private:
unsigned int _y;
};
-#endif