Skip to content

Commit

Permalink
clang tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
djfhe committed Jul 14, 2024
1 parent e70a252 commit bf6deca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
8 changes: 4 additions & 4 deletions include/osr/routing/profiles/hybrid.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,15 @@ struct node {
return node{};
}

node() : type_{node_type::kInvalid}, idx_{node_idx_t::invalid()}, lvl_{level_t::invalid()} {}
constexpr node() : type_{node_type::kInvalid}, idx_{node_idx_t::invalid()}, lvl_{level_t::invalid()} {}

node(node_idx_t const n, level_t const lvl, bool const is_parking)
constexpr node(node_idx_t const n, level_t const lvl, bool const is_parking)
: type_{node_type::kFoot}, idx_{n}, lvl_{lvl}, is_parking_{is_parking} {}

node(node_idx_t const n, level_t const lvl, bool const is_parking, direction const dir, way_pos_t const way)
constexpr node(node_idx_t const n, level_t const lvl, bool const is_parking, direction const dir, way_pos_t const way)
: type_{node_type::kCar}, idx_{n}, lvl_{lvl}, is_parking_{is_parking}, dir_{dir}, node_way_index_{way} {}

node(node_type const t, node_idx_t const n, level_t const lvl, bool const is_parking, direction const dir, way_pos_t const way)
constexpr node(node_type const t, node_idx_t const n, level_t const lvl, bool const is_parking, direction const dir, way_pos_t const way)
: type_{t}, idx_{n}, lvl_{lvl}, is_parking_{is_parking}, dir_{dir}, node_way_index_{way} {}

node_type type_;
Expand Down
1 change: 0 additions & 1 deletion src/extract.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
#include "utl/helpers/algorithm.h"
#include "utl/parser/arg_parser.h"
#include "utl/progress_tracker.h"
#include "utl/to_vec.h"

#include "tiles/osm/hybrid_node_idx.h"
#include "tiles/osm/tmp_file.h"
Expand Down

0 comments on commit bf6deca

Please sign in to comment.