aboutsummaryrefslogtreecommitdiff
path: root/src/mazerator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mazerator.cpp')
-rw-r--r--src/mazerator.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mazerator.cpp b/src/mazerator.cpp
index a073615..6866aaa 100644
--- a/src/mazerator.cpp
+++ b/src/mazerator.cpp
@@ -59,7 +59,7 @@ unsigned int get_uint_optarg(char arg, bool check_zero = false)
}
} // namespace
-const std::array<option, 8> options = {
+constexpr std::array<option, 8> options = {
option({"width", required_argument, nullptr, 'w'}),
option({"height", required_argument, nullptr, 'h'}),
option({"wall", required_argument, nullptr, 'W'}),
@@ -75,7 +75,7 @@ int main(int argc, char *argv[])
AppOptions app_options;
- BoundsOpts default_maze_bounds = {DEFAULT_MAZE_WIDTH, DEFAULT_MAZE_HEIGHT};
+ BoundsOptions default_maze_bounds = {DEFAULT_MAZE_WIDTH, DEFAULT_MAZE_HEIGHT};
app_options.maze_bounds = std::make_shared<Bounds>(default_maze_bounds);
@@ -177,7 +177,7 @@ int main(int argc, char *argv[])
app_options.random_gen->in_range(0, app_options.maze_bounds->height() - 1U));
}
- Vector2Opts start_coords = {.x = *start_x, .y = *start_y};
+ Vector2Options start_coords = {.x = *start_x, .y = *start_y};
app_options.start_coords = std::make_shared<Vector2>(start_coords);