Skip to content

Commit

Permalink
GCS_MAVLink: stop creating unnecessary Location object on stack
Browse files Browse the repository at this point in the history
Location is implicitly zero.
  • Loading branch information
peterbarker committed Nov 18, 2024
1 parent 2feee53 commit 4773571
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/GCS_MAVLink/GCS_Common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5502,7 +5502,7 @@ MAV_RESULT GCS_MAVLINK::handle_command_int_packet(const mavlink_command_int_t &p
#endif

case MAV_CMD_DO_SET_ROI_NONE: {
const Location zero_loc = Location();
const Location zero_loc;
return handle_command_do_set_roi(zero_loc);
}

Expand Down

0 comments on commit 4773571

Please sign in to comment.