Skip to content

Commit

Permalink
clang-tidy: add const to pointer param
Browse files Browse the repository at this point in the history
Signed-off-by: Rosen Penev <[email protected]>
  • Loading branch information
neheb committed Jan 23, 2025
1 parent 16057c8 commit 7a28faf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/torrent/download/choke_queue.cc
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ choke_queue::move_connections(choke_queue* src, choke_queue* dest, DownloadMain*

void
choke_manager_allocate_slots(choke_queue::iterator first, choke_queue::iterator last,
uint32_t max, uint32_t* weights, choke_queue::target_type* target) {
uint32_t max, const uint32_t* weights, choke_queue::target_type* target) {
// Sorting the connections from the lowest to highest value.
// TODO: std::sort(first, last, choke_manager_less);

Expand Down

0 comments on commit 7a28faf

Please sign in to comment.