Skip to content

Commit

Permalink
Remove default initialiser.
Browse files Browse the repository at this point in the history
  • Loading branch information
CLIDragon committed Aug 29, 2024
1 parent 90ba07f commit 9e3bdf3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/point.h
Original file line number Diff line number Diff line change
Expand Up @@ -404,11 +404,11 @@ std::optional<Point> find_point_closest_first( const Point &center, int min_dist
}

int x_init = std::max( min_dist, 1 );
Point p();
Point p;
p.x = x_init;
p.y = 1 - x_init;

Point d();
Point d;
d.x += 1;

for( int i = 0; i < *n; i++ ) {
Expand Down

0 comments on commit 9e3bdf3

Please sign in to comment.