From 9e3bdf3289bab4dd152fd46469cd2f879e02cd93 Mon Sep 17 00:00:00 2001 From: CLIDragon <84266961+CLIDragon@users.noreply.github.com> Date: Thu, 29 Aug 2024 15:34:31 +1000 Subject: [PATCH] Remove default initialiser. --- src/point.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/point.h b/src/point.h index 0c41fb55bae92..d85c4dabfa452 100644 --- a/src/point.h +++ b/src/point.h @@ -404,11 +404,11 @@ std::optional find_point_closest_first( const Point ¢er, 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++ ) {