Skip to content

Commit

Permalink
build: remove redundant move for build on noble (#12)
Browse files Browse the repository at this point in the history
remove redundant move

Signed-off-by: wep21 <daisuke.nishimatsu1021@gmail.com>
  • Loading branch information
wep21 authored Jul 2, 2024
1 parent 406a86a commit a2d5a6f
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;
}

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);
});

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

0 comments on commit a2d5a6f

Please sign in to comment.