Skip to content

Commit

Permalink
Address clang-tidy violations.
Browse files Browse the repository at this point in the history
  • Loading branch information
joaander committed Nov 5, 2024
1 parent c3f4d38 commit 8bae101
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions freud/locality/NeighborComputeFunctional.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ std::shared_ptr<NeighborList> makeDefaultNlist(const std::shared_ptr<NeighborQue
class NeighborListPerPointIterator : public NeighborPerPointIterator
{
public:
NeighborListPerPointIterator(const std::shared_ptr<NeighborList> nlist, size_t point_index)
NeighborListPerPointIterator(const std::shared_ptr<NeighborList>& nlist, size_t point_index)
: NeighborPerPointIterator(point_index), m_nlist(nlist)
{
m_current_index = m_nlist->find_first_index(point_index);
Expand Down Expand Up @@ -236,7 +236,7 @@ void loopOverNeighbors(const std::shared_ptr<NeighborQuery>& neighbor_query, con
* input. It should implement iteration logic over the iterator.
*/
template<typename ComputePairType>
void loopOverNeighborListIterator(const std::shared_ptr<NeighborList> nlist, const ComputePairType& cf,
void loopOverNeighborListIterator(const std::shared_ptr<NeighborList>& nlist, const ComputePairType& cf,
bool parallel = true)
{
util::forLoopWrapper(
Expand Down

0 comments on commit 8bae101

Please sign in to comment.