Skip to content

Commit

Permalink
Avoid passing references to temporary objects
Browse files Browse the repository at this point in the history
  • Loading branch information
carlopi committed Jun 27, 2024
1 parent 4d43328 commit fdccd12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/execution/window_executor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -155,11 +155,11 @@ struct WindowColumnIterator {
return iterator(a.coll, a.pos + n);
}

friend inline iterator &operator-(const iterator &a, difference_type n) {
friend inline iterator operator-(const iterator &a, difference_type n) {
return iterator(a.coll, a.pos - n);
}

friend inline iterator &operator+(difference_type n, const iterator &a) {
friend inline iterator operator+(difference_type n, const iterator &a) {
return a + n;
}
friend inline difference_type operator-(const iterator &a, const iterator &b) {
Expand Down

0 comments on commit fdccd12

Please sign in to comment.