Skip to content

Commit

Permalink
insert -> emplace
Browse files Browse the repository at this point in the history
Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp>
  • Loading branch information
tkimura4 committed Aug 29, 2022
1 parent 4eb4d54 commit ea82132
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion planning/route_handler/src/route_handler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ bool RouteHandler::isRouteLooped(const RouteSections & route_sections) const
for (const auto & route_section : route_sections) {
for (const auto & primitive : route_section.primitives) {
if (lane_primitives.find(primitive.id) == lane_primitives.end()) {
lane_primitives.insert(primitive.id);
lane_primitives.emplace(primitive.id);
} else {
return true; // find duplicated id
}
Expand Down

0 comments on commit ea82132

Please sign in to comment.