From e206dc1cf625f28149c19eb4dfcbf495ef0efbb4 Mon Sep 17 00:00:00 2001 From: HampusM Date: Fri, 18 Feb 2022 19:31:03 +0100 Subject: refactor: improve options of all kinds --- src/mazerator.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/mazerator.cpp') 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 options = { +constexpr std::array 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(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(start_coords); -- cgit v1.2.3-18-g5258