Skip to content

Commit

Permalink
Merge pull request #74740 from ehughsbaird/try-appease-clang
Browse files Browse the repository at this point in the history
Try to appease clang
  • Loading branch information
Maleclypse authored Jun 25, 2024
2 parents fe69e07 + 03e2ca7 commit 8b7f1de
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/map.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5245,6 +5245,9 @@ item &map::add_item_or_charges( const tripoint &pos, item obj, int &copies_remai
return *_add_item_or_charges( pos, std::move( obj ), copies_remaining, overflow ).first;
}

// clang-tidy is confused and thinks obj can be made into a const reference, but it can't
// on_drop is not a const function
// NOLINTNEXTLINE(performance-unnecessary-value-param)
std::pair<item *, tripoint> map::_add_item_or_charges( const tripoint &pos, item obj,
int &copies_remaining, bool overflow )
{
Expand Down

0 comments on commit 8b7f1de

Please sign in to comment.