Skip to content

Commit

Permalink
remove redundant move
Browse files Browse the repository at this point in the history
Signed-off-by: wep21 <daisuke.nishimatsu1021@gmail.com>
  • Loading branch information
wep21 committed Jul 1, 2024
1 parent a586d15 commit 06103c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion autoware_lanelet2_extension/lib/utilities.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ lanelet::ConstLanelet combineLaneletsShape(const lanelet::ConstLanelets & lanele
const auto center_line = lanelet::LineString3d(lanelet::InvalId, centers);
auto combined_lanelet = lanelet::Lanelet(lanelet::InvalId, left_bound, right_bound);
combined_lanelet.setCenterline(center_line);
return std::move(combined_lanelet);
return combined_lanelet;

Check warning on line 290 in autoware_lanelet2_extension/lib/utilities.cpp

View check run for this annotation

Codecov / codecov/patch

autoware_lanelet2_extension/lib/utilities.cpp#L290

Added line #L290 was not covered by tests
}

lanelet::LineString3d generateFineCenterline(
Expand Down
2 changes: 1 addition & 1 deletion autoware_lanelet2_extension/src/check_right_of_way.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ int main(int argc, char ** argv)
return it != attrs.end() && it->second == lanelet::AttributeValueString::RightOfWay;
}) // transform to lanelet::RightOfWay
| ranges::views::transform([](auto && elem) {
return std::move(std::dynamic_pointer_cast<lanelet::RightOfWay>(elem));
return std::dynamic_pointer_cast<lanelet::RightOfWay>(elem);

Check warning on line 68 in autoware_lanelet2_extension/src/check_right_of_way.cpp

View check run for this annotation

Codecov / codecov/patch

autoware_lanelet2_extension/src/check_right_of_way.cpp#L68

Added line #L68 was not covered by tests
});

for (auto && row : rows) {
Expand Down

0 comments on commit 06103c9

Please sign in to comment.