File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -463,7 +463,7 @@ template <size_t Capacity> class point_set {
463463 // insert_point(high, low);
464464 }
465465 constexpr bool check (int64_t low, int64_t high) {
466- for (auto r: *this ) {
466+ for (const auto & r: *this ) {
467467 if (r.low <= low && low <= r.high ) {
468468 return true ;
469469 } else if (r.low <= high && high <= r.high ) {
Original file line number Diff line number Diff line change @@ -4467,7 +4467,7 @@ template <size_t Capacity> class point_set {
44674467 //insert_point(high, low);
44684468 }
44694469 constexpr bool check(int64_t low, int64_t high) {
4470- for (auto r: *this) {
4470+ for (const auto & r: *this) {
44714471 if (r.low <= low && low <= r.high) {
44724472 return true;
44734473 } else if (r.low <= high && high <= r.high) {
Original file line number Diff line number Diff line change @@ -4464,7 +4464,7 @@ template <size_t Capacity> class point_set {
44644464 // insert_point(high, low);
44654465 }
44664466 constexpr bool check (int64_t low, int64_t high) {
4467- for (auto r: *this ) {
4467+ for (const auto & r: *this ) {
44684468 if (r.low <= low && low <= r.high ) {
44694469 return true ;
44704470 } else if (r.low <= high && high <= r.high ) {
You can’t perform that action at this time.
0 commit comments